machine: Use shutdown -r command to reboot
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
264e708c1d
commit
7a013a42f7
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue