From 99fd2f8ce74cff665c0960cd1d8ffdac8c57769e Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 24 Nov 2023 07:48:12 +0000 Subject: [PATCH] Remove existing /tmp/raspap_install.log --- installers/raspbian.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installers/raspbian.sh b/installers/raspbian.sh index 81de4bd5..357c184e 100755 --- a/installers/raspbian.sh +++ b/installers/raspbian.sh @@ -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 }