From 189914a3b0bfe1775a065766a3fd6d7e6e1cfebc Mon Sep 17 00:00:00 2001 From: Lyanis SOUIDI Date: Tue, 10 Sep 2024 10:58:00 +0200 Subject: [PATCH] Update vm/create_from_template.sh --- vm/create_from_template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/create_from_template.sh b/vm/create_from_template.sh index 4056ee1..f0e1294 100644 --- a/vm/create_from_template.sh +++ b/vm/create_from_template.sh @@ -32,7 +32,7 @@ while read -r username; do USERNAME=$(echo "$line") echo "Creating VM for $username in $POOL_NAME" qm clone $TEMPLATE_VM_ID $NEXT_VM_ID --name "$username" --full false --pool $POOL_NAME - qm set $NEXT_VM_ID --args "-fw_cfg name=\"opt/fr.iut-fbleau/hostname\",string=\"vm-$username\" -fw_cfg name=\"opt/fr.iut-fbleau/domain\",string=\"vm.iut-fbleau.fr\"" + qm set $NEXT_VM_ID --args "-fw_cfg name=\"opt/fr.iut-fbleau/hostname\",string=\"vm-$username\" -fw_cfg name=\"opt/fr.iut-fbleau/domainname\",string=\"vm.iut-fbleau.fr\"" pvesh set /access/acl --path /vms/$NEXT_VM_ID --roles PVEVMUser --users "$username@arda.lan" ((NEXT_VM_ID++)) done < "$INPUT_FILE"