Merge pull request #1889 from nextcloud/enh/noid/write-install-log

also write install log to logfile
This commit is contained in:
Simon L 2023-02-01 23:30:28 +01:00 committed by GitHub
commit 317a5b7823
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,6 +98,10 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then
# Write output to logfile.
exec > >(tee -i "/var/www/html/data/update.log")
exec 2>&1
else
# Write output to logfile.
exec > >(tee -i "/var/www/html/data/install.log")
exec 2>&1
fi
if [ "$installed_version" != "0.0.0.0" ] && [ "$((IMAGE_MAJOR - INSTALLED_MAJOR))" -gt 1 ]; then