beginning "create_vm" module, splitted main program
This commit is contained in:
31
modules/create_vm.sh
Normal file
31
modules/create_vm.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# create vm module
|
||||
# ------------------------------------------------------------------------------
|
||||
# Variable:
|
||||
# To be defined
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_create_vm="0.0.1"
|
||||
|
||||
create_vm()
|
||||
{
|
||||
if [[ WITH_VM != "yes" ]]; then
|
||||
prnt I "Cette machine n'est pas configurée pour la virtualisation, rien à faire."
|
||||
return 0
|
||||
fi
|
||||
|
||||
pkginst virtualbox
|
||||
# to be continued
|
||||
}
|
||||
|
||||
precheck_create_vm()
|
||||
{
|
||||
if [[ $WITH_VM == "true" ]]; then
|
||||
: #todo
|
||||
else
|
||||
prnt I "Aucune machine virtuelle à installer."
|
||||
fi
|
||||
}
|
||||
|
||||
export -f create_vm
|
||||
export -f precheck_create_vm
|
||||
Reference in New Issue
Block a user