diff --git a/scripts/webui/data/utils/webui_app_log.sh b/scripts/webui/data/utils/webui_app_log.sh index 921fb63..ed0682f 100755 --- a/scripts/webui/data/utils/webui_app_log.sh +++ b/scripts/webui/data/utils/webui_app_log.sh @@ -22,9 +22,12 @@ webuiUpdateAppLog() echo "=== LibrePortal Installation Started at $(date) ===" | runFileWrite "${log_file}" > /dev/null fi elif [[ "$type" == "uninstall" ]]; then - # Remove app log file + # Remove app log file via runFileOp (as the container-data owner) with + # -f: the log can be write-protected, and a bare rm prompts + # interactively for write-protected files, which hangs an unattended + # deploy (the uninstall phase of a 'full' redeploy). if [ -f "${log_file}" ]; then - local result=$(rm "${log_file}") + local result=$(runFileOp rm -f "${log_file}") checkSuccess "Removed ${app_name}.log" fi fi