From c69c0b2166f9674df2be024eb8edd965088a96f6 Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Mon, 10 Dec 2018 15:40:58 -0800 Subject: [PATCH] If shutting down don't call authrestartd.restart() afterwards --- code/client/managedsoftwareupdate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/client/managedsoftwareupdate b/code/client/managedsoftwareupdate index 4153b074..bd9034e6 100755 --- a/code/client/managedsoftwareupdate +++ b/code/client/managedsoftwareupdate @@ -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: