From fe3fb6e624f5f13f87fbce8bd2a4b9fdbae97413 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 27 Nov 2019 16:31:11 +0000 Subject: [PATCH] Remove sudo from reboot --- openflexure_microscope/api/v2/blueprints/actions/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/api/v2/blueprints/actions/system.py b/openflexure_microscope/api/v2/blueprints/actions/system.py index 1142b700..0b5bbd71 100644 --- a/openflexure_microscope/api/v2/blueprints/actions/system.py +++ b/openflexure_microscope/api/v2/blueprints/actions/system.py @@ -32,6 +32,6 @@ class RebootAPI(MicroscopeView): .. :quickref: Actions; Shutdown """ - subprocess.Popen(["sudo", "shutdown", "-r", "now"]) + subprocess.Popen(["shutdown", "-r", "now"]) return "{}", 201