Compare commits
2 Commits
b9dfbb89d1
...
5b0a445751
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b0a445751 | ||
|
|
b7d95f5e95 |
@ -22,9 +22,12 @@ webuiUpdateAppLog()
|
|||||||
echo "=== LibrePortal Installation Started at $(date) ===" | runFileWrite "${log_file}" > /dev/null
|
echo "=== LibrePortal Installation Started at $(date) ===" | runFileWrite "${log_file}" > /dev/null
|
||||||
fi
|
fi
|
||||||
elif [[ "$type" == "uninstall" ]]; then
|
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
|
if [ -f "${log_file}" ]; then
|
||||||
local result=$(rm "${log_file}")
|
local result=$(runFileOp rm -f "${log_file}")
|
||||||
checkSuccess "Removed ${app_name}.log"
|
checkSuccess "Removed ${app_name}.log"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user