diff options
author | nachoparker <nacho@ownyourbits.com> | 2021-11-09 20:54:18 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2022-03-03 00:53:24 +0300 |
commit | 9bf5ff032c351bf7ef74828b967dff0bcfba78b2 (patch) | |
tree | 47f41441489a89e92eed584236112bd5d013b236 /bin/ncp-dist-upgrade | |
parent | dd8fc3dd7d663faf5d916039ee042ef049aaf728 (diff) |
update to Debian 11 Bullseyev1.45.0
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin/ncp-dist-upgrade')
-rwxr-xr-x | bin/ncp-dist-upgrade | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/bin/ncp-dist-upgrade b/bin/ncp-dist-upgrade index 9a5e7efe..576fca57 100755 --- a/bin/ncp-dist-upgrade +++ b/bin/ncp-dist-upgrade @@ -42,12 +42,15 @@ apt-get purge -y php${PHPVER} php${PHPVER}-curl php${PHPVER}-gd php${PHPVER}-fpm apt-get purge -y php${PHPVER}-mysql apt-get purge -y php${PHPVER}-redis apt-get purge -y php${PHPVER}-exif +apt-get purge -y php${PHPVER}-bcmath +apt-get purge -y php${PHPVER}-gmp apt-get purge -y php${PHPVER}-imagick set -e # update sources -sed -i 's/stretch/buster/g' /etc/apt/sources.list -sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/* +sed -i 's/buster/bullseye/g' /etc/apt/sources.list +sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/* || true +sed -i 's/bullseye\/updates/bullseye-security/g' /etc/apt/sources.list rm -f /etc/apt/sources.list.d/php.list # install latest distro @@ -56,6 +59,8 @@ apt-get dist-upgrade -y # install latest PHP version release_new=$(jq -r '.release' < "${new_cfg}") +# the default repo in bullseye is bullseye-security +release_new="${release_new}-security" php_ver_new=$(jq -r '.php_version' < "${new_cfg}") $APTINSTALL -t ${release_new} php${php_ver_new} php${php_ver_new}-curl php${php_ver_new}-gd php${php_ver_new}-fpm php${php_ver_new}-cli php${php_ver_new}-opcache \ @@ -65,8 +70,13 @@ $APTINSTALL -t ${release_new} php${php_ver_new} php${php_ver_new}-curl php${php_ $APTINSTALL php${php_ver_new}-mysql $APTINSTALL -t ${release_new} php${php_ver_new}-redis -$APTINSTALL -t ${release_new} php-smbclient exfat-fuse exfat-utils +$APTINSTALL -t ${release_new} smbclient exfat-fuse exfat-utils +sleep 2 # avoid systemd thinking that PHP is in a crash/restart loop $APTINSTALL -t ${release_new} php${php_ver_new}-exif +sleep 2 # avoid systemd thinking that PHP is in a crash/restart loop +$APTINSTALL -t ${release_new} php${php_ver_new}-bcmath +sleep 2 # avoid systemd thinking that PHP is in a crash/restart loop +$APTINSTALL -t ${release_new} php${php_ver_new}-gmp #$APTINSTALL -t ${release_new} imagemagick php${php_ver_new}-imagick ghostscript apt-get autoremove -y @@ -114,6 +124,7 @@ is_active_app unattended-upgrades && run_app unattended-upgrades || true # mark as successful mv "${new_cfg}" "${old_cfg}" +source /usr/local/etc/library.sh # refresh NCPCFG RELEASE PHPVER run_app nc-limits restore_maintenance_mode |