Fixed typo's Fedora implementation of ReleaseUpgrade
This commit is contained in:
12
functions.sh
12
functions.sh
@@ -202,18 +202,18 @@ UpgradeRelease () {
|
||||
else
|
||||
echo "Notice: Skiped, already up-to-date"
|
||||
fi
|
||||
elif [[ "${DIST}" == *"fedora"* ]]; then
|
||||
echo "Notice: Release upgrade disabled for Fedora"
|
||||
elif [[ "${DIST}" == *"alpine"* ]] && $DoFedoraReleaseUpdate ; then
|
||||
elif [[ "${DIST}" == *"alpine"* ]]; then
|
||||
echo "Notice: Release upgrade disabled for Alpine"
|
||||
elif [[ "${DIST}" == *"fedora"* ]] && $DoFedoraReleaseUpdate ; then
|
||||
if [ $RELVERSION != $NewFedoraVersion ]; then
|
||||
#Create snapshot before upgrading
|
||||
$SNAPSHOTCMD "Before upgrade form Fedora $RELVERSION to Fedora $NewFedoraVersion"
|
||||
#Fully update current version
|
||||
$INSTCALL -- dnf install dnf-plugin-system-upgrade remove-retired-packages symlinks clean-rpm-gpg-pubkey -y
|
||||
$INSTCALL -- dnf upgrade --refresh -y
|
||||
$INSTCALL -- system-upgrade download --releasever=$RELVERSION -y
|
||||
$INSTCALL -- system-upgrade reboot
|
||||
echo waiting 5 minutes for Fedora to install its update while rebooting
|
||||
$INSTCALL -- dnf system-upgrade download --releasever=$NewFedoraVersion -y
|
||||
$INSTCALL -- dnf system-upgrade reboot
|
||||
echo Waiting 5 minutes for Fedora to install its update while rebooting
|
||||
sleep 300
|
||||
$INSTCALL -- dnf remove --duplicates -y
|
||||
$INSTCALL -- dnf autoremove -y
|
||||
|
||||
Reference in New Issue
Block a user