bump to version 0.99.18
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Create VBox VM
|
||||
# This file is part of the init.sh project
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# Copyright (c) 2019-2022 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
@@ -11,13 +11,13 @@
|
||||
# To be defined
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_create_vm="0.0.1"
|
||||
export VER_create_vm="0.0.2"
|
||||
export DEP_create_vm="upgrade_dist install_pkg"
|
||||
|
||||
create_vm()
|
||||
{
|
||||
if [[ $WITH_VM != "yes" ]]; then
|
||||
prnt I "Cette machine n'est pas configurée pour la virtualisation, rien à faire."
|
||||
prnt W "That computer is not configured for virtualisation, nothing to do."
|
||||
return 0
|
||||
fi
|
||||
|
||||
@@ -94,16 +94,16 @@ precheck_create_vm()
|
||||
{
|
||||
if [[ $WITH_VM == "yes" ]]; then
|
||||
if [[ -z $VM_NAME ]]; then
|
||||
prnt E "La machine virtuelle à créer doit avoir un nom."
|
||||
prnt E "The virtual machine must have a name."
|
||||
die 181
|
||||
fi
|
||||
if [[ -z VM_CPU || -z VM_MEM || -z VM_OS || -z VM_ROOT || \
|
||||
-z VM_BOOT1 || -z VM_BOOT2 || -z VM_BOOT3 || -z VM_VID_MEM ||
|
||||
-z VM_IF_BRIDGE || -z VM_DISK_SIZE ]]; then
|
||||
prnt E "Une variable de description de la machine virtuelle n'est pas déclarée !"
|
||||
prnt E "A necessary declaration for the virtual machine is absent!"
|
||||
die 181
|
||||
else
|
||||
prnt I "La machine virtuelle \"$VM_NAME\" sera crée dans $VM_ROOT..."
|
||||
prnt I "The virtual machine \"$VM_NAME\" will be created in $VM_ROOT..."
|
||||
fi
|
||||
|
||||
local share= i=0 j=0
|
||||
@@ -115,13 +115,13 @@ precheck_create_vm()
|
||||
done
|
||||
unset share
|
||||
if [[ $i -eq $j ]]; then
|
||||
prnt I "La machine virtuelle aura accès à $i répertoires de l'hôte."
|
||||
prnt I "The virtual machine will access $i directories from the host."
|
||||
else
|
||||
prnt E "Le nombre de partage et de chemin à partager diffère !"
|
||||
prnt E "The number of share and path to share is different!"
|
||||
die 182
|
||||
fi
|
||||
else
|
||||
prnt I "Aucune machine virtuelle à installer."
|
||||
prnt I "No virtual machine to create."
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user