summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xunattended-upgrade-shutdown5
1 files changed, 4 insertions, 1 deletions
diff --git a/unattended-upgrade-shutdown b/unattended-upgrade-shutdown
index 1678f25..42a063c 100755
--- a/unattended-upgrade-shutdown
+++ b/unattended-upgrade-shutdown
@@ -121,7 +121,10 @@ if __name__ == "__main__":
env = copy.copy(os.environ)
env["UNATTENDED_UPGRADES_FORCE_INSTALL_ON_SHUTDOWN"] = "1"
logging.debug("starting unattended-upgrades in shutdown mode")
- p = subprocess.Popen(["unattended-upgrade"], env=env)
+ stdio_log = open(os.path.join(logdir,
+ 'unattended-upgrades-shutdown-output.log'), 'w')
+ p = subprocess.Popen(["unattended-upgrade"], env=env,
+ stdout=stdio_log, stderr=subprocess.STDOUT)
log_msg(_("Running unattended-upgrades in shutdown mode"))
while True:
log_progress()