Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-05-28 12:14:10 +0300
committernachoparker <nacho@ownyourbits.com>2018-05-28 12:32:13 +0300
commit82f333334e6dfad13d1243de918b76051a55003c (patch)
treed9a07a28fe3b880e8b427d795bc500e9b1e273f8 /update.sh
parenta070860a58440326861583958d7186cc568eef48 (diff)
fix bad merge, move NC logs to /var/log
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/update.sh b/update.sh
index dcbdfc81..b6667ec8 100755
--- a/update.sh
+++ b/update.sh
@@ -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 ]] && {