diff options
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -145,6 +145,7 @@ done install_script nc-restore.sh cd - &>/dev/null + # fix exit status autoupdate F="$CONFDIR"/nc-autoupdate-ncp.sh grep -q '^ACTIVE_=yes$' "$F" && { cd "$CONFDIR" &>/dev/null @@ -158,6 +159,12 @@ done cd - &>/dev/null } + # fix update httpd log location in virtual host after nc-datadir + DATADIR="$( grep datadirectory /var/www/nextcloud/config/config.php | awk '{ print $3 }' | grep -oP "[^']*[^']" | head -1 )" + sed -i "s|CustomLog.*|CustomLog $DATADIR/access.log combined|" /etc/apache2/sites-available/nextcloud.conf + sed -i "s|ErrorLog .*|ErrorLog $DATADIR/error.log|" /etc/apache2/sites-available/nextcloud.conf + + } # end - only live updates exit 0 |