mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
try ussing tee for proper logoutput in console and file
This commit is contained in:
parent
6b2664e6ef
commit
15219001b1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user