try appending to logfile with new method

This commit is contained in:
Ulf Gebhardt 2022-03-12 03:14:35 +01:00
parent 0885938bda
commit 2975efe58f
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -50,7 +50,7 @@ TODAY=$(date +"%Y-%m-%d")
# redirect all output of the script to the UPDATE_HTML and also have things on console
# TODO: this might pose a security risk
exec > >(tee $UPDATE_HTML) 2>&1
exec > >>(tee $UPDATE_HTML) 2>&1
# configure nginx for the update-page
echo 'Configuring nginx to serve the update-page' >> $UPDATE_HTML