update_nextcloud.sh: empty log file at end of the script.

This commit is contained in:
2025-12-20 23:38:21 +01:00
parent 28a7c7aa78
commit 416960f84c

View File

@@ -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