Revert "Fixed rebooting for openflexure-ws user"
This reverts commit 72af35e4ae
This commit is contained in:
parent
72af35e4ae
commit
51692795c6
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ class ShutdownAPI(View):
|
|||
"""
|
||||
Attempt to shutdown the device
|
||||
"""
|
||||
subprocess.Popen(["shutdown", "-h", "now"])
|
||||
subprocess.Popen(["sudo", "shutdown", "-h", "now"])
|
||||
|
||||
return "{}", 201
|
||||
|
||||
|
|
@ -41,6 +41,6 @@ class RebootAPI(View):
|
|||
"""
|
||||
Attempt to reboot the device
|
||||
"""
|
||||
subprocess.Popen(["systemctl", "reboot", "-i"])
|
||||
subprocess.Popen(["sudo", "shutdown", "-r", "now"])
|
||||
|
||||
return "{}", 201
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue