Skip to content

Commit 88fdd80

Browse files
authored
Add maintenance window configuration for Nextcloud
Set maintenance window start for Nextcloud if not configured. Signed-off-by: enoch85 <[email protected]>
1 parent fb1a590 commit 88fdd80

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nextcloud_update.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,15 @@ $DOCKER_RUN_OUTPUT"
734734
docker_update_specific 'imaginary' "Imaginary"
735735
fi
736736

737+
738+
if [ "${CURRENTVERSION%%.*}" -ge "22" ]
739+
then
740+
if ! nextcloud_occ config:system:get maintenance_window_start
741+
then
742+
nextcloud_occ config:system:set maintenance_window_start --type=integer --value=2
743+
fi
744+
fi
745+
737746
# Fix Collabora change too coolwsd
738747
if grep -r loolwsd "$SITES_AVAILABLE"/*.conf
739748
then

0 commit comments

Comments
 (0)