aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-05-16 13:26:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-05-16 13:26:40 -0300
commit074b303236172221872cd950537cfd527b1ca7bb (patch)
treea9d9efe9188cba5111583570645233bfbfd37364
parent097d9cab62c7b10da81f0a683287d611f977c85e (diff)
downloadkvmx-074b303236172221872cd950537cfd527b1ca7bb.tar.gz
kvmx-074b303236172221872cd950537cfd527b1ca7bb.tar.bz2
Fix(kvmx-create): do not install spice-vdagent and qemu-guest-agent if spice is disabled
-rwxr-xr-xkvmx-create5
1 files changed, 4 insertions, 1 deletions
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