From 3f90144181c262ca992cd214f35be0a99a1e1e07 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 27 Jun 2021 17:44:00 +0200 Subject: [PATCH 1/1] Append to planet update log instead of overwriting The planet update log of a run was writing over the previous log instead of appending. The log file is already rotated correctly, so it is not growing without bounds with this change. --- cookbooks/planet/templates/default/planet-update.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/planet/templates/default/planet-update.erb b/cookbooks/planet/templates/default/planet-update.erb index 3f6f0a6db..4c00592b9 100644 --- a/cookbooks/planet/templates/default/planet-update.erb +++ b/cookbooks/planet/templates/default/planet-update.erb @@ -2,7 +2,7 @@ # DO NOT EDIT - This file is being maintained by Chef -exec > /var/log/planet-update.log 2>&1 +exec >> /var/log/planet-update.log 2>&1 echo "Updating planet file..." -- 2.39.5