From fa000f31165542dd0a1fffe62821c0fe4eaa942a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CAlbert?= Date: Wed, 1 Feb 2023 13:53:04 +0100 Subject: [PATCH] modif mkvm pour s-adm et rol ssh-cli --- scripts/mkvm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/mkvm b/scripts/mkvm index 987a990..28ecc28 100755 --- a/scripts/mkvm +++ b/scripts/mkvm @@ -11,7 +11,7 @@ deletemode=0 usage () { echo "$0 - version ${mkvmrelease} - Ova version ${ovarelease}" echo "$0 : creation VM et parametrage interfaces" - echo "usage : $0 [-r] " + echo "usage : $0 [-r] " echo " option -r : efface vm existante avant creation nouvelle" exit 1 } @@ -33,7 +33,6 @@ create_vm () { } setif () { - VBoxManage modifyvm "$1" --nic"${2}" intnet VBoxManage modifyvm "$1" --intnet"${2}" "$3" VBoxManage modifyvm "$1" --nictype"${2}" 82540EM @@ -66,6 +65,8 @@ fi vm="$1" create_vm "${vm}" +if [[ "${vm}" == "s-adm" ]] ; then + bash addint-s.adm if [[ "${vm}" == "s-infra" ]] ; then create_if "${vm}" "n-adm" "n-infra" elif [[ "${vm}" == "s-proxy" ]] ; then