From 1e1474216421da27008726c44ebe0a5ba2fb6a08 Mon Sep 17 00:00:00 2001 From: algobarb <78746954+algobarb@users.noreply.github.com> Date: Wed, 19 May 2021 18:00:19 -0400 Subject: [PATCH] fix the systemctl conditional so it restarts with systemd (#2165) --- cmd/updater/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/updater/update.sh b/cmd/updater/update.sh index 9bca96b873..136ce67d51 100755 --- a/cmd/updater/update.sh +++ b/cmd/updater/update.sh @@ -375,7 +375,7 @@ function run_systemd_action() { echo "systemd system service: $action" return 0 fi - elif grep sudo <(groups "$process_owner" &> /dev/null); then + elif grep sudo <(groups "$process_owner") &> /dev/null; then if sudo -n systemctl "$action" "algorand@$(systemd-escape "$data_dir")"; then echo "sudo -n systemd system service: $action" return 0