beginning "create_vm" module, splitted main program

This commit is contained in:
fatalerrors
2021-07-13 12:58:47 +02:00
parent 3f8d3b633f
commit 83a41fd21c
6 changed files with 198 additions and 116 deletions

31
modules/create_vm.sh Normal file
View 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