File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,44 +6,5 @@ source /usr/local/etc/library.sh
66
77install_template systemd/notify_push.service.sh /etc/systemd/system/notify_push.service
88
9- if is_docker
10- then
11-
12- echo " Upgrading PHP..."
13- export DEBIAN_FRONTEND=noninteractive
14- PHPVER_OLD=" 7.4"
15- PHPVER_NEW=" 8.1"
16-
17- php_restore () {
18- trap " " INT TERM HUP ERR
19- echo " Something went wrong while upgrading PHP. Rolling back..."
20- set +e
21- a2disconf php${PHPVER_NEW} -fpm
22- set_ncpcfg " php_version" " ${PHPVER_OLD} "
23- install_template " php/opcache.ini.sh" " /etc/php/${PHPVER_OLD} /mods-available/opcache.ini"
24- clear_opcache
25- run_app nc-limits
26- a2enconf " php${PHPVER_OLD} -fpm"
27- service " php${PHPVER_OLD} -fpm" start
28- service apache2 restart
29- echo " PHP upgrade has been reverted. Please downgrade to the previous docker image"
30- }
31-
32- trap php_restore INT TERM HUP ERR
33-
34- # Setup apt repository for php 8
35-
36- a2disconf " php${PHPVER_OLD} -fpm"
37- set_ncpcfg " php_version" " ${PHPVER_NEW} "
38- install_template " php/opcache.ini.sh" " /etc/php/${PHPVER_NEW} /mods-available/opcache.ini"
39- ( set -e; export PHPVER=" ${PHPVER_NEW} " ; run_app nc-limits )
40- clear_opcache
41- a2enconf " php${PHPVER_NEW} -fpm"
42- service " php${PHPVER_NEW} -fpm" start
43- service apache2 restart
44-
45- else
46-
47- clear_opcache
48- bash -c " sleep 6; service php${PHPVER} -fpm restart" & > /dev/null &
49- fi
9+ clear_opcache
10+ bash -c " sleep 6; service php${PHPVER} -fpm restart" & > /dev/null &
You can’t perform that action at this time.
0 commit comments