machine: Use shutdown -r command to reboot

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2020-10-05 18:23:58 -04:00
parent 264e708c1d
commit 7a013a42f7
1 changed files with 1 additions and 1 deletions

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')