try ussing tee for proper logoutput in console and file

This commit is contained in:
Ulf Gebhardt 2022-03-12 03:08:45 +01:00
parent 6b2664e6ef
commit 15219001b1
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -50,7 +50,8 @@ 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 3>&1 1>>$UPDATE_HTML 2>&1
# exec 3>&1 1>>$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