Use reboot from /sbin

According to FHS, the reboot command should live in /sbin.
Systems may also have a symlink in /usr/bin, but they don't have to.

https://fedorahosted.org/freeipa/ticket/2480
This commit is contained in:
Petr Viktorin authored and Martin Kosek committed 2012-03-02 16:53:47 +01:00
1 parent b7d092a0f4
commit be14c6609b
1 file changed
+1 -1
+1 -1
View File
@@ -409,7 +409,7 @@ def uninstall(options, env, quiet=False):
if not options.on_master:
if user_input("Do you want to reboot the machine?", False):
try:
run(["/usr/bin/reboot"])
run(["/sbin/reboot"])
except Exception, e:
emit_quiet(quiet, "Reboot command failed to exceute. " + str(e))
return CLIENT_UNINSTALL_ERROR