Remove existing /tmp/raspap_install.log

This commit is contained in:
billz 2023-11-24 07:48:12 +00:00
parent ffafcf2c83
commit 99fd2f8ce7

View file

@ -187,6 +187,9 @@ function _setup_colors() {
function _log_output() {
readonly LOGFILE_PATH="/tmp"
if [ -f "$LOGFILE_PATH/raspap_install.log" ]; then
rm "$LOGFILE_PATH/raspap_install.log"
fi
exec > >(tee -i $LOGFILE_PATH/raspap_install.log)
exec 2>&1
}