Skip to content

Commit adc164f

Browse files
authored
move maintenance_windows
Signed-off-by: enoch85 <[email protected]>
1 parent 88fdd80 commit adc164f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

nextcloud_update.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -734,15 +734,6 @@ $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-
746737
# Fix Collabora change too coolwsd
747738
if grep -r loolwsd "$SITES_AVAILABLE"/*.conf
748739
then
@@ -1244,6 +1235,13 @@ then
12441235
nextcloud_occ config:system:set default_phone_region --value="$KEYBOARD_LAYOUT"
12451236
fi
12461237
fi
1238+
if [ "${CURRENTVERSION%%.*}" -ge "22" ]
1239+
then
1240+
if ! nextcloud_occ config:system:get maintenance_window_start
1241+
then
1242+
nextcloud_occ config:system:set maintenance_window_start --type=integer --value=2
1243+
fi
1244+
fi
12471245
if [ "${CURRENTVERSION%%.*}" -ge "23" ]
12481246
then
12491247
# Update opcache.interned_strings_buffer

0 commit comments

Comments
 (0)