Fixed initial build failures after Alpine version update

This commit is contained in:
2025-08-08 21:43:43 +02:00
parent 4d3046b535
commit a618d57cad
4 changed files with 37 additions and 31 deletions

View File

@@ -0,0 +1,29 @@
#!/bin/bash
#Goto ProjectRoot
cd "$( cd "$( dirname "$0" )" &> /dev/null && pwd )/.."
# Ask for version number
read -p "Enter the new AlpineLinux version: " AlpineVersion
# Confirm the version
while true; do
read -p "Update AlpineLinux version in scripts to '$AlpineVersion'. Continue? (yes/no): " yn
case "$yn" in
[Yy])
break
;;
[Nn])
echo "Version not confirmed. Exiting."
exit 1
;;
*)
echo "Please answer yes or no."
;;
esac
done
#Update version in main container defintion (Alpine.yaml)
sed -i -e "0,/release: \"[^\"]*\"/s//release: \"$AlpineVersion\"/" CT-Build/Alpine.yaml
#Update version in the PHP setup/update script(AlpinePHPTool.sh)
sed -i -e "0,/^SupportedAlpineVersion=/s/^SupportedAlpineVersion=.*/SupportedAlpineVersion=$AlpineVersion/" Scripts/AlpinePHPTool.sh