Files
init.sh/modules/create_vm.sh

39 lines
1.1 KiB
Bash

# ------------------------------------------------------------------------------
# Create VBox VM
# This file is part of the init.sh project
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
# ------------------------------------------------------------------------------
# This file is distributed under 3-clause BSD license.
# The complete license agreement can be obtained at:
# https://opensource.org/licenses/BSD-3-Clause
# ------------------------------------------------------------------------------
# Variable:
# To be defined
# ------------------------------------------------------------------------------
export VER_create_vm="0.0.1"
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."
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