Loading openflexure_microscope/api/v2/blueprints/actions/system.py +2 −2 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ class ShutdownAPI(MicroscopeView): .. :quickref: Actions; Shutdown """ subprocess.Popen(["shutdown", "-h", "now"]) subprocess.Popen(["sudo", "shutdown", "-h", "now"]) return "{}", 201 Loading @@ -32,6 +32,6 @@ class RebootAPI(MicroscopeView): .. :quickref: Actions; Shutdown """ subprocess.Popen(["shutdown", "-r", "now"]) subprocess.Popen(["sudo", "shutdown", "-r", "now"]) return "{}", 201 Loading
openflexure_microscope/api/v2/blueprints/actions/system.py +2 −2 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ class ShutdownAPI(MicroscopeView): .. :quickref: Actions; Shutdown """ subprocess.Popen(["shutdown", "-h", "now"]) subprocess.Popen(["sudo", "shutdown", "-h", "now"]) return "{}", 201 Loading @@ -32,6 +32,6 @@ class RebootAPI(MicroscopeView): .. :quickref: Actions; Shutdown """ subprocess.Popen(["shutdown", "-r", "now"]) subprocess.Popen(["sudo", "shutdown", "-r", "now"]) return "{}", 201