From fdf957e8ef0fc9bac3f7fdd8b2cf8ccc1b6865d7 Mon Sep 17 00:00:00 2001 From: Sn0wCrack <442287+Sn0wCrack@users.noreply.github.com> Date: Wed, 23 Aug 2023 03:33:21 +1000 Subject: [PATCH] fix: resolve issues when php feature upgrades package (#1878) this should resolve the majority of issues people are having with the php installs essentially one of these packages is getting upgraded as part of the install and it's stalling on a dpkg cofigure prompt to keep a particular config file this should use the default if specified by the package maintainer or the existing config file if none is specified. --- .gitignore | 1 + scripts/features/php5.6.sh | 2 +- scripts/features/php7.0.sh | 2 +- scripts/features/php7.1.sh | 2 +- scripts/features/php7.2.sh | 2 +- scripts/features/php7.3.sh | 2 +- scripts/features/php7.4.sh | 2 +- scripts/features/php8.0.sh | 2 +- scripts/features/php8.1.sh | 2 +- scripts/features/php8.2.sh | 2 +- 10 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 4e68b92a7..56ed8076c 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ phpunit.xml .phpunit.result.cache wsl-init.log .backup/* +.DS_Store diff --git a/scripts/features/php5.6.sh b/scripts/features/php5.6.sh index b94b464b8..ff91b2f13 100644 --- a/scripts/features/php5.6.sh +++ b/scripts/features/php5.6.sh @@ -28,7 +28,7 @@ touch /home/$WSL_USER_NAME/.homestead-features/php56 chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features # PHP 5.6 -apt-get install -y --allow-change-held-packages \ +apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --allow-change-held-packages \ php5.6-bcmath php5.6-bz2 php5.6-cgi php5.6-cli php5.6-common php5.6-curl php5.6-dba php5.6-dev php5.6-enchant \ php5.6-fpm php5.6-gd php5.6-gmp php5.6-imap php5.6-interbase php5.6-intl php5.6-json php5.6-ldap php5.6-mbstring \ php5.6-mcrypt php5.6-mysql php5.6-odbc php5.6-opcache php5.6-pgsql php5.6-phpdbg php5.6-pspell php5.6-readline \ diff --git a/scripts/features/php7.0.sh b/scripts/features/php7.0.sh index 936a0e477..f168bc0de 100644 --- a/scripts/features/php7.0.sh +++ b/scripts/features/php7.0.sh @@ -28,7 +28,7 @@ touch /home/$WSL_USER_NAME/.homestead-features/php70 chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features # PHP 7.0 -apt-get install -y --allow-change-held-packages \ +apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --allow-change-held-packages \ php7.0-bcmath php7.0-bz2 php7.0-cgi php7.0-cli php7.0-common php7.0-curl php7.0-dba php7.0-dev php7.0-enchant \ php7.0-fpm php7.0-gd php7.0-gmp php7.0-imap php7.0-interbase php7.0-intl php7.0-json php7.0-ldap php7.0-mbstring \ php7.0-mcrypt php7.0-mysql php7.0-odbc php7.0-opcache php7.0-pgsql php7.0-phpdbg php7.0-pspell php7.0-readline \ diff --git a/scripts/features/php7.1.sh b/scripts/features/php7.1.sh index 80b2b86b0..d03f979ab 100644 --- a/scripts/features/php7.1.sh +++ b/scripts/features/php7.1.sh @@ -28,7 +28,7 @@ touch /home/$WSL_USER_NAME/.homestead-features/php71 chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features # PHP 7.1 -apt-get install -y --allow-change-held-packages \ +apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --allow-change-held-packages \ php7.1-bcmath php7.1-bz2 php7.1-cgi php7.1-cli php7.1-common php7.1-curl php7.1-dba php7.1-dev php7.1-enchant \ php7.1-fpm php7.1-gd php7.1-gmp php7.1-imap php7.1-interbase php7.1-intl php7.1-json php7.1-ldap php7.1-mbstring \ php7.1-mcrypt php7.1-mysql php7.1-odbc php7.1-opcache php7.1-pgsql php7.1-phpdbg php7.1-pspell php7.1-readline \ diff --git a/scripts/features/php7.2.sh b/scripts/features/php7.2.sh index 89553f2ab..86193c20b 100644 --- a/scripts/features/php7.2.sh +++ b/scripts/features/php7.2.sh @@ -28,7 +28,7 @@ touch /home/$WSL_USER_NAME/.homestead-features/php72 chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features # PHP 7.2 -apt-get install -y --allow-change-held-packages \ +apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --allow-change-held-packages \ php7.2-bcmath php7.2-bz2 php7.2-dba php7.2-enchant php7.2-fpm php7.2-imap php7.2-interbase php7.2-intl \ php7.2-mbstring php7.2-phpdbg php7.2-soap php7.2-sybase php7.2-xsl php7.2-zip php7.2-cgi php7.2-cli php7.2-common \ php7.2-curl php7.2-dev php7.2-gd php7.2-gmp php7.2-json php7.2-ldap php7.2-mysql php7.2-odbc php7.2-opcache \ diff --git a/scripts/features/php7.3.sh b/scripts/features/php7.3.sh index d1b153dc7..bf98e10db 100644 --- a/scripts/features/php7.3.sh +++ b/scripts/features/php7.3.sh @@ -28,7 +28,7 @@ touch /home/$WSL_USER_NAME/.homestead-features/php73 chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features # PHP 7.3 -apt-get install -y --allow-change-held-packages \ +apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --allow-change-held-packages \ php7.3 php7.3-bcmath php7.3-bz2 php7.3-cgi php7.3-cli php7.3-common php7.3-curl php7.3-dba php7.3-dev php7.3-enchant \ php7.3-fpm php7.3-gd php7.3-gmp php7.3-imap php7.3-interbase php7.3-intl php7.3-json php7.3-ldap php7.3-mbstring \ php7.3-mysql php7.3-odbc php7.3-opcache php7.3-pgsql php7.3-phpdbg php7.3-pspell php7.3-readline php7.3-recode \ diff --git a/scripts/features/php7.4.sh b/scripts/features/php7.4.sh index df1ac5e9b..4dc69401c 100644 --- a/scripts/features/php7.4.sh +++ b/scripts/features/php7.4.sh @@ -28,7 +28,7 @@ touch /home/$WSL_USER_NAME/.homestead-features/php74 chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features # PHP 7.4 -apt-get install -y --allow-change-held-packages \ +apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --allow-change-held-packages \ php7.4 php7.4-bcmath php7.4-bz2 php7.4-cgi php7.4-cli php7.4-common php7.4-curl php7.4-dba php7.4-dev \ php7.4-enchant php7.4-fpm php7.4-gd php7.4-gmp php7.4-imap php7.4-interbase php7.4-intl php7.4-json php7.4-ldap \ php7.4-mbstring php7.4-mysql php7.4-odbc php7.4-opcache php7.4-pgsql php7.4-phpdbg php7.4-pspell php7.4-readline \ diff --git a/scripts/features/php8.0.sh b/scripts/features/php8.0.sh index 2021e1c2b..9025a6301 100644 --- a/scripts/features/php8.0.sh +++ b/scripts/features/php8.0.sh @@ -28,7 +28,7 @@ touch /home/$WSL_USER_NAME/.homestead-features/php80 chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features # PHP 8.0 -apt-get install -y --allow-change-held-packages \ +apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --allow-change-held-packages \ php8.0 php8.0-bcmath php8.0-bz2 php8.0-cgi php8.0-cli php8.0-common php8.0-curl php8.0-dba php8.0-dev \ php8.0-enchant php8.0-fpm php8.0-gd php8.0-gmp php8.0-imap php8.0-interbase php8.0-intl php8.0-ldap \ php8.0-mbstring php8.0-mysql php8.0-odbc php8.0-opcache php8.0-pgsql php8.0-phpdbg php8.0-pspell php8.0-readline \ diff --git a/scripts/features/php8.1.sh b/scripts/features/php8.1.sh index 8c0c8c88a..db84dda96 100644 --- a/scripts/features/php8.1.sh +++ b/scripts/features/php8.1.sh @@ -28,7 +28,7 @@ touch /home/$WSL_USER_NAME/.homestead-features/php81 chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features # PHP 8.1 -apt-get install -y --allow-change-held-packages \ +apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --allow-change-held-packages \ php8.1 php8.1-bcmath php8.1-bz2 php8.1-cgi php8.1-cli php8.1-common php8.1-curl php8.1-dba php8.1-dev \ php8.1-enchant php8.1-fpm php8.1-gd php8.1-gmp php8.1-imap php8.1-interbase php8.1-intl php8.1-ldap \ php8.1-mbstring php8.1-mysql php8.1-odbc php8.1-opcache php8.1-pgsql php8.1-phpdbg php8.1-pspell php8.1-readline \ diff --git a/scripts/features/php8.2.sh b/scripts/features/php8.2.sh index 1be4490ea..651422c55 100644 --- a/scripts/features/php8.2.sh +++ b/scripts/features/php8.2.sh @@ -20,7 +20,7 @@ touch /home/$WSL_USER_NAME/.homestead-features/php82 chown -Rf $WSL_USER_NAME:$WSL_USER_GROUP /home/$WSL_USER_NAME/.homestead-features # PHP 8.2 -apt-get install -y --allow-change-held-packages \ +apt-get install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --allow-change-held-packages \ php8.2 php8.2-bcmath php8.2-bz2 php8.2-cgi php8.2-cli php8.2-common php8.2-curl php8.2-dba php8.2-dev \ php8.2-enchant php8.2-fpm php8.2-gd php8.2-gmp php8.2-imap php8.2-interbase php8.2-intl php8.2-ldap \ php8.2-mbstring php8.2-mysql php8.2-odbc php8.2-opcache php8.2-pgsql php8.2-phpdbg php8.2-pspell php8.2-readline \