Skip to content

Commit

Permalink
fix maintenance:mode (#2535)
Browse files Browse the repository at this point in the history
@cc @szaimen

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
  • Loading branch information
enoch85 committed Jul 31, 2023
1 parent 5cfb044 commit b98e350
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions not-supported/borgbackup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ start_services() {
systemctl start postgresql
if [ -z "$MAINTENANCE_MODE_ON" ]
then
nextcloud_occ_no_check maintenance:mode --off
sudo -u www-data php "$NCPATH"/occ maintenance:mode --off
fi
start_if_stopped docker
# Restart notify push if existing
Expand Down Expand Up @@ -272,11 +272,11 @@ Please don't restart or shutdown your server until then!"
then
systemctl stop docker
fi
if [ "$(nextcloud_occ_no_check config:system:get maintenance)" = "true" ]
if [ "$(sudo -u www-data php "$NCPATH"/occ config:system:get maintenance)" = "true" ]
then
MAINTENANCE_MODE_ON=1
fi
nextcloud_occ_no_check maintenance:mode --on
sudo -u www-data php "$NCPATH"/occ maintenance:mode --on
# Database export
# Not really necessary since the root partition gets backed up but easier to restore on new systems
ncdb # get NCDB
Expand Down

0 comments on commit b98e350

Please sign in to comment.