diff options
author | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-28 13:20:38 +0300 |
---|---|---|
committer | thecalcaholic <6317548+theCalcaholic@users.noreply.github.com> | 2022-09-28 13:20:38 +0300 |
commit | d1daa9b7fa869ac0f51a8e2457a816fc2cc5fae7 (patch) | |
tree | ffcb463e88b0ae7a8290f48fd4eea2d7fa3532cd | |
parent | b1de996809b48250b045e49fd41d2df828e28bb5 (diff) |
Revert d784a6a932977fc2b2a04eceeaa1803c8e159dea
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
-rw-r--r-- | updates/1.50.1.sh | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/updates/1.50.1.sh b/updates/1.50.1.sh index 39726f2e..645f184a 100644 --- a/updates/1.50.1.sh +++ b/updates/1.50.1.sh @@ -6,44 +6,5 @@ source /usr/local/etc/library.sh install_template systemd/notify_push.service.sh /etc/systemd/system/notify_push.service -if is_docker -then - - echo "Upgrading PHP..." - export DEBIAN_FRONTEND=noninteractive - PHPVER_OLD="7.4" - PHPVER_NEW="8.1" - - php_restore() { - trap "" INT TERM HUP ERR - echo "Something went wrong while upgrading PHP. Rolling back..." - set +e - a2disconf php${PHPVER_NEW}-fpm - set_ncpcfg "php_version" "${PHPVER_OLD}" - install_template "php/opcache.ini.sh" "/etc/php/${PHPVER_OLD}/mods-available/opcache.ini" - clear_opcache - run_app nc-limits - a2enconf "php${PHPVER_OLD}-fpm" - service "php${PHPVER_OLD}-fpm" start - service apache2 restart - echo "PHP upgrade has been reverted. Please downgrade to the previous docker image" - } - - trap php_restore INT TERM HUP ERR - - # Setup apt repository for php 8 - - a2disconf "php${PHPVER_OLD}-fpm" - set_ncpcfg "php_version" "${PHPVER_NEW}" - install_template "php/opcache.ini.sh" "/etc/php/${PHPVER_NEW}/mods-available/opcache.ini" - ( set -e; export PHPVER="${PHPVER_NEW}"; run_app nc-limits ) - clear_opcache - a2enconf "php${PHPVER_NEW}-fpm" - service "php${PHPVER_NEW}-fpm" start - service apache2 restart - -else - - clear_opcache - bash -c "sleep 6; service php${PHPVER}-fpm restart" &>/dev/null & -fi +clear_opcache +bash -c "sleep 6; service php${PHPVER}-fpm restart" &>/dev/null & |