Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Break up arguments for sudo systemctl.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesremuscat committed Nov 25, 2016
1 parent 7e8ff21 commit c6b3076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/staldates/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

def restart_avx_controller():
# NB This assumes a suitable entry in /etc/sudoers.d/ to allow the command to run passwordlessly
return subprocess.call(["/usr/bin/sudo /bin/systemctl restart avx-controller.service"])
return subprocess.call(["/usr/bin/sudo", "/bin/systemctl", "restart", "avx-controller.service"])


def restart_server():
Expand Down

0 comments on commit c6b3076

Please sign in to comment.