]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix(kvmx-create): do not install spice-vdagent and qemu-guest-agent if spice is disabled
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 16 May 2022 16:26:40 +0000 (13:26 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 16 May 2022 16:26:40 +0000 (13:26 -0300)
kvmx-create

index aa4d493cefc24dd1952ec2be62897c67f66554ae..e2cd6ab7ded89bcce519eb2079d2b784eb2c563b 100755 (executable)
@@ -451,7 +451,10 @@ EOF
 
   # Basic packages
   $APT_INSTALL screen cron lsb-release openssl rsync
-  $APT_INSTALL spice-vdagent qemu-guest-agent
+
+  if [ "$spice" == "1" ]; then
+    $APT_INSTALL spice-vdagent qemu-guest-agent
+  fi
 
   # OpenSSH
   $APT_INSTALL openssh-server -y