diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-05-20 17:30:21 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-05-20 17:32:54 +0300 |
commit | fac99a62899fb0a6a341b9657826c0b49fded037 (patch) | |
tree | 30f011909a178f41865029cd9f4731a6c2f3beea /update.sh | |
parent | c97acf8a8e7aa1ba17d5f5d7379635dd82259563 (diff) |
fix update httpd log location in virtual host after nc-datadirv0.56.6
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 |