machine: Use shutdown -r command to reboot

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine committed 2020-10-05 18:23:58 -04:00
1 parent 264e708c1d
commit 7a013a42f7
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ class Machine:
if path == "/machine/shutdown":
cmd = "sudo shutdown now"
elif path == "/machine/reboot":
cmd = "sudo reboot now"
cmd = "sudo shutdown -r now"
else:
raise self.server.error("Unsupported machine request")
shell_command = self.server.lookup_plugin('shell_command')