From cf38b9a73d0dd38121e5ed9480c5654696852967 Mon Sep 17 00:00:00 2001 From: Simon L Date: Wed, 1 Feb 2023 22:25:40 +0100 Subject: [PATCH] also write install log to logfile Signed-off-by: Simon L --- Containers/nextcloud/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index f0bd572f..e4d2b36a 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -98,6 +98,10 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then # Write output to logfile. exec > >(tee -i "/var/www/html/data/update.log") exec 2>&1 + else + # Write output to logfile. + exec > >(tee -i "/var/www/html/data/install.log") + exec 2>&1 fi if [ "$installed_version" != "0.0.0.0" ] && [ "$((IMAGE_MAJOR - INSTALLED_MAJOR))" -gt 1 ]; then