Improve logging and notifications of the staging website update script (tails#17856)
We modify the staging website build script to log all operations to 2 different places:
- A log file in:
/var/log/weblate/update-staging-website_ikiwiki.sh
- A public file in: https://staging.tails.boum.org/update-staging-website.txt
The script now handles stdout and stderr of sub-scripts in a special way:
-
Both stdout and stderr of all sub-scripts are logged to the 2 log files listed above.
-
Stderr is passed-through to ensure that when cron runs the script error logs will be sent through e-mail to service admins.
-
Ikiwiki's output is supressed from the public log because it is usually very long and it can be hard for translatxrs to understand.
Close: tails#17856 (closed)
Edited by Zen Fu