If shutting down don't call authrestartd.restart() afterwards

This commit is contained in:
Greg Neagle
2018-12-10 15:40:58 -08:00
committed by Wesley Whetstone
parent e5b473107a
commit c69c0b2166

View File

@@ -354,7 +354,7 @@ def doRestart(shutdown=False):
# do it directly
if shutdown:
authrestart.do_authorized_or_normal_restart(shutdown=shutdown)
if not authrestartd.restart():
elif not authrestartd.restart():
authrestart.do_authorized_or_normal_restart()
else:
if display.munkistatusoutput: