Created
October 3, 2022 14:12
-
-
Save alexAubin/2eb588521117537c692f38a020f9b2d1 to your computer and use it in GitHub Desktop.
finish_the_bullseye_migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-mark hold $(dpkg --list | grep ynh-deps | awk '{print $2}') | |
LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none sudo apt full-upgrade | |
PHP73_PACKAGE_SUFFIXES="apcu bcmath bz2 dom mp igbinary imagick imap mbstring memcached mysqli mysqlnd pgsql redis simplexml soap sqlite3 ssh2 tidy xml xmlrpc xsl zip" | |
ADDITIONAL_PHP74_PACKAGES_NEEDED=$(apt show '*-ynh-deps' 2>/dev/null | grep Depends | grep -o -E "php7.3-($(echo $PHP73_PACKAGE_SUFFIXES | tr ' ' '|'))" | sort | uniq | sed 's/php7.3/php7.4/g' || true) | |
BASE_PHP74_PACKAGES_TO_INSTALL="php7.4-fpm php7.4-common php7.4-ldap php7.4-intl php7.4-mysql php7.4-gd php7.4-curl php-php-gettext" | |
echo LC_ALL=C DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none sudo apt install -o Dpkg::Options::='--force-confmiss' $(dpkg --list | grep ynh-deps | awk '{print $2}') $BASE_PHP74_PACKAGES_TO_INSTALL $ADDITIONAL_PHP74_PACKAGES_NEEDED | |
sudo apt-mark auto $BASE_PHP74_PACKAGES_TO_INSTALL | |
sudo apt-mark unhold $(dpkg --list | grep ynh-deps | awk '{print $2}') | |
sudo yunohost tools migrations run 0021_migrate_to_bullseye --skip | |
sudo yunohost tools migrations run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment