Script: AlpinePHPTool.sh

Refactored PHP packagelists to set the PHP version when running `AlpinePHPTool.sh` instead of having it set in the pkglist.
This change will deprecate `AlpineUpdatePHPVer.sh` since  only the `NewPHPVer` variable in `AlpinePHPTool.sh`  needs to change the PHP version change
This commit is contained in:
2025-01-09 23:12:18 +01:00
parent b8859801ac
commit bb07d31c83
5 changed files with 4 additions and 14 deletions

View File

@@ -1 +1 @@
php84 php84-fpm php84-curl php84-gmp php84-intl php84-mbstring php84-xml php84-zip php84-ctype php84-dom php84-fileinfo php84-iconv php84-json php84-opcache php84-openssl php84-phar php84-session php84-simplexml php84-xmlreader php84-xmlwriter php84-xml php84-tokenizer php84-zlib php84-pdo_mysql
phpPHPver phpPHPver-fpm phpPHPver-curl phpPHPver-gmp phpPHPver-intl phpPHPver-mbstring phpPHPver-xml phpPHPver-zip phpPHPver-ctype phpPHPver-dom phpPHPver-fileinfo phpPHPver-iconv phpPHPver-json phpPHPver-opcache phpPHPver-openssl phpPHPver-phar phpPHPver-session phpPHPver-simplexml phpPHPver-xmlreader phpPHPver-xmlwriter phpPHPver-xml phpPHPver-tokenizer phpPHPver-zlib phpPHPver-pdo_mysql

View File

@@ -1 +1 @@
php84 php84-ctype php84-curl php84-pdo_sqlite php84-mbstring php84-json php84-zip php84-xml php84-fpm php84-session php84-openssl php84-tokenizer php84-fileinfo php84-dom
phpPHPver phpPHPver-ctype phpPHPver-curl phpPHPver-pdo_sqlite phpPHPver-mbstring phpPHPver-json phpPHPver-zip phpPHPver-xml phpPHPver-fpm phpPHPver-session phpPHPver-openssl phpPHPver-tokenizer phpPHPver-fileinfo phpPHPver-dom

View File

@@ -1 +1 @@
php84-pdo_mysql php84-pecl-imagick php84-cli php84-pecl-apcu php84-pecl-redis php84-fpm php84-cgi php84-common php84-mbstring php84-curl php84-gd php84-intl php84-soap php84-xml php84-zip php84-pear php84-session php84-posix php84-pdo php84-dom php84-simplexml php84-xmlreader php84-xmlwriter php84-opcache php84-pcntl php84-fileinfo php84-bcmath php84-gmp php84-sysvsem php84-exif php84-bz2 php84-sodium php84-ctype
phpPHPver-pdo_mysql phpPHPver-pecl-imagick phpPHPver-cli phpPHPver-pecl-apcu phpPHPver-pecl-redis phpPHPver-fpm phpPHPver-cgi phpPHPver-common phpPHPver-mbstring phpPHPver-curl phpPHPver-gd phpPHPver-intl phpPHPver-soap phpPHPver-xml phpPHPver-zip phpPHPver-pear phpPHPver-session phpPHPver-posix phpPHPver-pdo phpPHPver-dom phpPHPver-simplexml phpPHPver-xmlreader phpPHPver-xmlwriter phpPHPver-opcache phpPHPver-pcntl phpPHPver-fileinfo phpPHPver-bcmath phpPHPver-gmp phpPHPver-sysvsem phpPHPver-exif phpPHPver-bz2 phpPHPver-sodium phpPHPver-ctype

View File

@@ -110,6 +110,7 @@ run_Purge() {
#(re)install PHP packages
run_Install() {
sed -i -e "s/phpPHPver/php$NewPHPVer/g" $configStore/php.pkglist
cat $configStore/php.pkglist | xargs apk add
#Configure Php-Fpm
echo ";Placeholder" > /etc/php$NewPHPVer/php-fpm.d/www.conf

View File

@@ -1,11 +0,0 @@
#!/bin/bash
#Vars
#Goto ProjectRoot
cd "$( cd "$( dirname "$0" )" &> /dev/null && pwd )/.."
read -p "Old PHP version (example 82 for 8.2): " OldPHPVer
read -p "New PHP version (example 83 for 8.3): " NewPHPVer
sed -i -e "s/NewPHPVer=$OldPHPVer/NewPHPVer=$NewPHPVer/g" ./Scripts/AlpinePHPTool.sh
find ./CT-Files -name "php.pkglist" | xargs sed -i -e "s/php-fpm$OldPHPVer/php-fpm$NewPHPVer/g" -e "s/php$OldPHPVer/php$NewPHPVer/g"