From e204901d9245dcc256f3c088782044a6e5a3fbad Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 3 Oct 2019 00:02:16 +0530 Subject: [PATCH] systemd: Fix update script Signed-off-by: Harsh Shandilya --- systemd_units/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd_units/update.sh b/systemd_units/update.sh index 573d5a9..4d82f77 100755 --- a/systemd_units/update.sh +++ b/systemd_units/update.sh @@ -18,7 +18,7 @@ for service in "${services[@]}"; do prettyPrint "Installing ${service}" sudo cp -v "${service}.service" /etc/systemd/system/ sudo systemctl daemon-reload - if [ "${NO_RESTART}" = false ]; then + if [ -z "${NO_RESTART}" ]; then prettyPrint "Restarting ${service}" sudo systemctl restart "${service}" if [ ! -f "/etc/systemd/system/multi-user.target.wants/${service}.service" ]; then