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

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@techandme.se>2018-08-05 16:38:11 +0300
committerGitHub <noreply@github.com>2018-08-05 16:38:11 +0300
commit0730db96159aca50855c4ac1821298fe8aa970b0 (patch)
tree48ea70b7c7b31e83e46983928529250847cecb9e /nextcloud_update.sh
parent08a02d6cf245b51dfbc24101358830dfd0403584 (diff)
start and stop Apache2
Diffstat (limited to 'nextcloud_update.sh')
-rw-r--r--nextcloud_update.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/nextcloud_update.sh b/nextcloud_update.sh
index 01735066..c54f3c8c 100644
--- a/nextcloud_update.sh
+++ b/nextcloud_update.sh
@@ -140,6 +140,9 @@ echo "Backing up files and upgrading to Nextcloud $NCVERSION in 10 seconds..."
echo "Press CTRL+C to abort."
sleep 10
+# Stop Apache2
+check_command service apache2 stop
+
# Backup PostgreSQL
if which psql > /dev/null
then
@@ -285,6 +288,9 @@ Please check in $BACKUP if the folders exist."
exit 1
fi
+# Start Apache2
+check_command service apache2 start
+
# Recover apps that exists in the backed up apps folder
# run_static_script recover_apps