From 9288c64e5f618e45844f19a902f022c9c9dec8b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Weing=C3=A4rtner?= Date: Thu, 19 Apr 2018 15:57:45 -0300 Subject: [PATCH] systemvm: Use double quotes with 'RROUTER' variable in "common.sh" script (#2586) While debugging the VR for #2579, I noticed that one of the scripts were breaking. The variable RROUTER was not set and this broke a conditional. Signed-off-by: Rohit Yadav --- systemvm/debian/opt/cloud/bin/setup/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/debian/opt/cloud/bin/setup/common.sh b/systemvm/debian/opt/cloud/bin/setup/common.sh index e24a27790b7..d2a26c988b0 100755 --- a/systemvm/debian/opt/cloud/bin/setup/common.sh +++ b/systemvm/debian/opt/cloud/bin/setup/common.sh @@ -585,7 +585,7 @@ routing_svcs() { systemctl enable haproxy echo "haproxy apache2" > /var/cache/cloud/enabled_svcs echo "cloud nfs-common portmap" > /var/cache/cloud/disabled_svcs - if [ $RROUTER -eq 1 ] + if [ "$RROUTER" -eq "1" ] then systemctl disable --now dnsmasq systemctl enable conntrackd