mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-13 09:41:55 -06:00
Fix ipa-client-install --uninstall crash
Fix ipa-client-install crash when chronyd service fails to start. https://fedorahosted.org/freeipa/ticket/4273 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
parent
1e58588ec2
commit
2ff14607b1
@ -692,7 +692,10 @@ def uninstall(options, env):
|
||||
if restored:
|
||||
services.knownservices.ntpd.restart()
|
||||
|
||||
ipaclient.ntpconf.restore_forced_ntpd(statestore)
|
||||
try:
|
||||
ipaclient.ntpconf.restore_forced_ntpd(statestore)
|
||||
except CalledProcessError, e:
|
||||
root_logger.error('Failed to start chronyd: %s', e)
|
||||
|
||||
if was_sshd_configured and services.knownservices.sshd.is_running():
|
||||
services.knownservices.sshd.restart()
|
||||
|
Loading…
Reference in New Issue
Block a user