Fixed Alpine3.23 post upgrade task
* Task has a y/n loop that did not quit after responce
This commit is contained in:
@@ -58,6 +58,7 @@ UpdatePackages () {
|
|||||||
$INSTCALL -- apk update
|
$INSTCALL -- apk update
|
||||||
$INSTCALL -- apk upgrade
|
$INSTCALL -- apk upgrade
|
||||||
elif [[ "${DIST}" == *"centos"* ]] || [[ "${DIST}" == *"fedora"* ]]; then
|
elif [[ "${DIST}" == *"centos"* ]] || [[ "${DIST}" == *"fedora"* ]]; then
|
||||||
|
$INSTCALL -- dnf clean all
|
||||||
$INSTCALL -- dnf update -y
|
$INSTCALL -- dnf update -y
|
||||||
else
|
else
|
||||||
echo "Warning: Package manager in not supported"
|
echo "Warning: Package manager in not supported"
|
||||||
@@ -283,10 +284,10 @@ PostAlpine323Tasks () {
|
|||||||
[Nn]* )
|
[Nn]* )
|
||||||
$INSTCALL -- merge-usr
|
$INSTCALL -- merge-usr
|
||||||
$INSTCALL -- apk del merge-usr
|
$INSTCALL -- apk del merge-usr
|
||||||
;;
|
break;;
|
||||||
[Yy]* )
|
[Yy]* )
|
||||||
echo "Migrating /bin to /usr/bin skiped due to an error, please investigate and complete manualy"
|
echo "Migrating /bin to /usr/bin skiped due to an error, please investigate and complete manualy"
|
||||||
;;
|
break;;
|
||||||
* ) echo "Choose yes or no.";;
|
* ) echo "Choose yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user