Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-09-28 13:20:38 +0300
committerthecalcaholic <6317548+theCalcaholic@users.noreply.github.com>2022-09-28 13:20:38 +0300
commitd1daa9b7fa869ac0f51a8e2457a816fc2cc5fae7 (patch)
treeffcb463e88b0ae7a8290f48fd4eea2d7fa3532cd
parentb1de996809b48250b045e49fd41d2df828e28bb5 (diff)
Revert d784a6a932977fc2b2a04eceeaa1803c8e159dea
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
-rw-r--r--updates/1.50.1.sh43
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 &