File tree Expand file tree Collapse file tree 6 files changed +8
-17
lines changed Expand file tree Collapse file tree 6 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 103103
104104cd " $NCDIR "
105105
106- clear_opcache
107-
108106# ## INCLUDEDATA=yes situation
109107NUMFILES=2
110108if [[ $( ls " $TMPDIR " | wc -l ) -eq $NUMFILES ]]; then
@@ -183,6 +181,5 @@ ncc files:scan-app-data
183181
184182# restart PHP if needed
185183[[ " $NEED_RESTART " == " 1" ]] && {
186- clear_opcache
187- bash -c " sleep 3; service php${PHPVER} -fpm restart" & > /dev/null &
184+ bash -c " sleep 5; source /usr/local/etc/library.sh; clear_opcache; service php${PHPVER} -fpm restart" & > /dev/null &
188185}
Original file line number Diff line number Diff line change @@ -184,9 +184,6 @@ chown -R www-data:www-data nextcloud
184184find nextcloud/ -type d -exec chmod 750 {} \;
185185find nextcloud/ -type f -exec chmod 640 {} \;
186186
187- # Clear PHP opcache
188- clear_opcache
189-
190187# upgrade
191188# ###################
192189echo " Upgrade..."
250247 apt-get install -y --no-install-recommends -t " $RELEASE " " ${PHP_PACKAGES_OLD[@]} "
251248 set_ncpcfg " php_version" " ${PHPVER_OLD} "
252249 install_template " php/opcache.ini.sh" " /etc/php/${PHPVER_NEW} /mods-available/opcache.ini"
253- clear_opcache
254250 run_app nc-limits
255251 a2enconf " php${PHPVER_OLD} -fpm"
256252 service " php${PHPVER_OLD} -fpm" start
@@ -308,3 +304,5 @@ mv "$BKP" "$DATADIR"/ncp-update-backups
308304chown -R www-data:www-data " $DATADIR " /ncp-update-backups
309305BKP=" $DATADIR " /ncp-update-backups/" $( basename " $BKP " ) "
310306echo " Backup stored at $BKP "
307+
308+ bash -c " sleep 5; source /usr/local/etc/library.sh; clear_opcache;" & > /dev/null &
Original file line number Diff line number Diff line change @@ -80,8 +80,7 @@ configure()
8080
8181 # RESTART PHP
8282 [[ " $require_fpm_restart " == " true" ]] && {
83- clear_opcache
84- bash -c " sleep 3; service php${PHPVER} -fpm restart" & > /dev/null &
83+ bash -c " sleep 3; source /usr/local/etc/library.sh; clear_opcache; service php${PHPVER} -fpm restart" & > /dev/null &
8584 }
8685
8786 # redis max memory
Original file line number Diff line number Diff line change 1212configure ()
1313{
1414 echo " Clearing opcache..."
15- clear_opcache
15+ bash -c " sleep 5; source /usr/local/etc/library.sh; clear_opcache;" & > /dev/null &
16+ echo " Done."
1617}
1718
1819install () { : ; }
Original file line number Diff line number Diff line change 22
33set -e
44export NCPCFG=/usr/local/etc/ncp.cfg
5- source /usr/local/etc/library.sh
65
7-
8- clear_opcache
9- bash -c " sleep 6; service php${PHPVER} -fpm restart" & > /dev/null &
6+ bash -c " sleep 6; source /usr/local/etc/library.sh; clear_opcache" & > /dev/null &
Original file line number Diff line number Diff line change @@ -6,5 +6,4 @@ source /usr/local/etc/library.sh
66
77install_template systemd/notify_push.service.sh /etc/systemd/system/notify_push.service
88
9- clear_opcache
10- bash -c " sleep 6; service php${PHPVER} -fpm restart" & > /dev/null &
9+ bash -c " sleep 6; source /usr/local/etc/library.sh; clear_opcache; service php${PHPVER} -fpm reload" & > /dev/null &
You can’t perform that action at this time.
0 commit comments