From 416960f84c43820c159babc55feade1d54180168 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 20 Dec 2025 23:38:21 +0100 Subject: [PATCH] update_nextcloud.sh: empty log file at end of the script. --- update_nextcloud.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/update_nextcloud.sh b/update_nextcloud.sh index e253a55..fa839f5 100755 --- a/update_nextcloud.sh +++ b/update_nextcloud.sh @@ -1867,6 +1867,15 @@ if $(systemctl list-units --full -all | grep -Fq "notify_push") ; then fi fi +echononl " Empty log file.." +: > ${WEB_BASE_DIR}/logs/cloud.log > $log_file 2>&1 +if [[ $? -eq 0 ]]; then + echo_ok +else + echo_failed + error "\n\n$(cat $log_file)" +fi + blank_line clean_up 0