Skip to content

Commit

Permalink
fix the systemctl conditional so it restarts with systemd (#2165)
Browse files Browse the repository at this point in the history
  • Loading branch information
algobarb authored May 19, 2021
1 parent 1703bdc commit 1e14742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/updater/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e14742

Please sign in to comment.