diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-05-28 12:14:10 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-05-28 12:32:13 +0300 |
commit | 82f333334e6dfad13d1243de918b76051a55003c (patch) | |
tree | d9a07a28fe3b880e8b427d795bc500e9b1e273f8 | |
parent | a070860a58440326861583958d7186cc568eef48 (diff) |
fix bad merge, move NC logs to /var/log
-rwxr-xr-x | update.sh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -168,9 +168,8 @@ done } # 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 + sed -i "s|CustomLog.*|CustomLog /var/log/apache2/nc-access.log combined|" /etc/apache2/sites-available/nextcloud.conf + sed -i "s|ErrorLog .*|ErrorLog /var/log/apache2/nc-error.log|" /etc/apache2/sites-available/nextcloud.conf # fix systemd timer still present [[ -f /etc/systemd/system/nc-scan.service ]] && { |