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

@@ -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