File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -330,9 +330,24 @@ then
330330 apt-get update -q4 --allow-releaseinfo-change & spinner_loading
331331fi
332332
333+ # Enter maintenance_mode
334+ nextcloud_occ_no_check maintenance_mode --on
335+
333336# Upgrade OS dependencies
334337export DEBIAN_FRONTEND=noninteractive ; apt-get dist-upgrade -y -o Dpkg::Options::=" --force-confdef" -o Dpkg::Options::=" --force-confold"
335338
339+ # Improve Apache for PHP-FPM
340+ if is_this_installed php" $PHPVER " -fpm
341+ then
342+ if [ -d " $PHP_FPM_DIR " ]
343+ then
344+ # Just make sure that MPM_EVENT is default
345+ a2dismod mpm_prefork
346+ a2enmod mpm_event
347+ restart_webserver
348+ fi
349+ fi
350+
336351# Fix Realtek on PN51
337352if asuspn51
338353then
@@ -676,10 +691,12 @@ then
676691 chmod +x " $SCRIPTS " /updatenotification.sh
677692fi
678693
694+ # Disable maintenance_mode
695+ nextcloud_occ_no_check maintenance_mode --off
696+
679697# Update all Nextcloud apps
680698if [ " ${CURRENTVERSION%% .* } " -ge " 15" ]
681699then
682- nextcloud_occ maintenance:mode --off
683700 # Check for upgrades
684701 print_text_in_color " $ICyan " " Trying to automatically update all Nextcloud apps..."
685702 UPDATED_APPS=" $( nextcloud_occ_no_check app:update --all) "
You can’t perform that action at this time.
0 commit comments