Fixed initial build failures after Alpine version update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
self=$0
|
||||
|
||||
Configurations="nextcloud freshrss heimdall mailbackup"
|
||||
SupportedAlpineVersion=3.21
|
||||
SupportedAlpineVersion=3.22
|
||||
NewPHPVer=84
|
||||
SkipAlpineRelCheck=false
|
||||
|
||||
@@ -26,7 +26,7 @@ if [[ $(cat /etc/os-release | grep -m 1 ^"ID=") != *"alpine"* ]]; then echo Not
|
||||
#AlpineVersionCheck
|
||||
|
||||
if $SkipAlpineRelCheck ; then echo "Notice: Alpine releas check skipped"
|
||||
elif [[ $(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}') != *"$SupportedAlpineVersion"* ]]; then printf "This Alpine Linux is not supported by default,\nto continue set SkipAlpineRelCheck to true and check the targeted php version in the script\n" ;exit 1;fi
|
||||
elif [[ $(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}') != *"$SupportedAlpineVersion"* ]]; then printf "This Alpine Linux version is not supported by default,\nto continue set SkipAlpineRelCheck to true and check the targeted php version in the script\n" ;exit 1;fi
|
||||
|
||||
#Functions for menu/core use
|
||||
show_help () {
|
||||
|
||||
29
Scripts/AlpineSetReleaseVersion.sh
Normal file
29
Scripts/AlpineSetReleaseVersion.sh
Normal 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
|
||||
Reference in New Issue
Block a user