From: Silvio Rhatto Date: Mon, 16 May 2022 16:26:40 +0000 (-0300) Subject: Fix(kvmx-create): do not install spice-vdagent and qemu-guest-agent if spice is disabled X-Git-Tag: 0.1.0~40 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=074b303236172221872cd950537cfd527b1ca7bb;p=kvmx.git Fix(kvmx-create): do not install spice-vdagent and qemu-guest-agent if spice is disabled --- diff --git a/kvmx-create b/kvmx-create index aa4d493..e2cd6ab 100755 --- a/kvmx-create +++ b/kvmx-create @@ -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