From 9f485b6588fb325b31cd0668c4cea169d6631c62 Mon Sep 17 00:00:00 2001 From: mischa Date: Thu, 4 May 2023 16:44:43 +0200 Subject: [PATCH] make sure during install autostart is not enabled --- deploy.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.pl b/deploy.pl index 1a16ee2..04de6c6 100755 --- a/deploy.pl +++ b/deploy.pl @@ -120,7 +120,7 @@ sub render_vm_conf { my $_mac = $vms{$vm_name}{'mac'} || $conf{'conf'}{'MAC_PREFIX'} . ":" . $vms{$vm_name}{'vm_number'}; printf $fh_vm "vm \"%s\" {\n", $_instance; - printf $fh_vm "\tdisable\n" if ! $vms{$vm_name}{'enable'}; + printf $fh_vm "\tdisable\n" if (! $vms{$vm_name}{'enable'} || ! -e $_disk); printf $fh_vm "\towner %s\n", $_owner; printf $fh_vm "\tmemory %s\n", $_memory if $_memory; printf $fh_vm "\tboot device net\n" if (! -e $_disk); @@ -363,7 +363,7 @@ my %vms; my @files = glob "$conf{'conf'}{'VMS'}/*.txt"; %vms = get_variables('vms', @files); -$conf{'conf'}{'DHCPD'} = "yes" if ! $conf{'conf'}{'DHCPD'}; +$conf{'conf'}{'DHCPD'} = "yes" if (! $conf{'conf'}{'DHCPD'}); # run all functions #debug_parse(\%conf, \%vms);