mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Martin Kosek
parent
b7d092a0f4
commit
be14c6609b
@@ -409,7 +409,7 @@ def uninstall(options, env, quiet=False):
|
|||||||
if not options.on_master:
|
if not options.on_master:
|
||||||
if user_input("Do you want to reboot the machine?", False):
|
if user_input("Do you want to reboot the machine?", False):
|
||||||
try:
|
try:
|
||||||
run(["/usr/bin/reboot"])
|
run(["/sbin/reboot"])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
emit_quiet(quiet, "Reboot command failed to exceute. " + str(e))
|
emit_quiet(quiet, "Reboot command failed to exceute. " + str(e))
|
||||||
return CLIENT_UNINSTALL_ERROR
|
return CLIENT_UNINSTALL_ERROR
|
||||||
|
|||||||
Reference in New Issue
Block a user