Added basic Fedora support

This commit is contained in:
2025-01-07 22:31:07 +01:00
parent 1dc94431ac
commit 49a8f3aa2b
3 changed files with 62 additions and 3 deletions

View File

@@ -29,14 +29,17 @@ while true; do
[Dd]* )
DoDebianReleaseUpdate=true
DoAlpineReleaseUpdate=false
DoFedoraReleaseUpdate=false
break;;
[Aa]* )
DoDebianReleaseUpdate=false
DoAlpineReleaseUpdate=true
DoFedoraReleaseUpdate=false
break;;
[Bb]* )
DoDebianReleaseUpdate=true
DoAlpineReleaseUpdate=true
DoFedoraReleaseUpdate=false
break;;
* ) echo "Please answer with (D)Debian, (A)Alpine or (B)oth.";;
esac
@@ -73,6 +76,21 @@ echo "Enter the Alpine version to upgrade to"
esac
done
fi
if $DoFedoraReleaseUpdate; then
echo "Enter the Fedora version to upgrade to"
read NewFedoraVersionNewFedoraVersion
while true; do
read -p "Upgrade to Fedora $NewFedoraVersion, is this correct? -> yes/no?" yn
case $yn in
[Nn]* )
echo "Enter the Fedora version to upgrade to"
read NewFedoraVersion
;;
[Yy]* ) break;;
* ) echo "Choose yes or no.";;
esac
done
fi
#CT updates
if $UpdateCT; then