Commit 51692795 authored by Joel Collins's avatar Joel Collins
Browse files

Revert "Fixed rebooting for openflexure-ws user"

This reverts commit 72af35e4
parent 72af35e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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