Skip to content

Commit d1daa9b

Browse files
committed
Revert d784a6a
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
1 parent b1de996 commit d1daa9b

1 file changed

Lines changed: 2 additions & 41 deletions

File tree

updates/1.50.1.sh

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,5 @@ source /usr/local/etc/library.sh
66

77
install_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 &

0 commit comments

Comments
 (0)