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:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index 505ef8c7..75651fe1 100755
--- a/update.sh
+++ b/update.sh
@@ -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