openmamba-dist-upgrade: script finalization after tests

This commit is contained in:
Silvan Calarco 2016-12-18 23:50:46 +01:00
parent a3558ec237
commit 47c82da249

View File

@ -48,6 +48,23 @@ else
rm -f $SMART_FILE_MILESTONE rm -f $SMART_FILE_MILESTONE
fi fi
echo -n "
System will be upgraded to openmamba milestone4
HINTS:
- this operation can't be reversed
- it is always a good practice to have a backup of, at least, personal important data
- broadband connection needed, possibly connect your computer to cable network
- prepare to wait, upgrade may take up to some hours depending on networks and your computer speed
- if this is a laptop plug it to AC power
- in case of problems you may find help on the forums at openmamba.org web site
Proceed with upgrade [y/N]?"
read ans
[ "$ans" = "y" ] || exit 0
echo "Upgrading current openmamba release..." echo "Upgrading current openmamba release..."
#smart update || exit 1 #smart update || exit 1
#smart upgrade -y || exit 1 #smart upgrade -y || exit 1
@ -408,14 +425,34 @@ for r in ["milestone2","milestone2-games","milestone2-updates","milestone2-maked
_EOF _EOF
fi fi
echo "Preparing for upgrade..."
rm -f /var/lib/smart/cache rm -f /var/lib/smart/cache
rm -f /var/lib/smart/channels/* rm -f /var/lib/smart/channels/*
#smart install http://cdn.openmamba.org/pub/openmamba/milestone4/RPMS.${RPMARCH}/smart-1.5-9mamba.${RPMARCH}.rpm
smart update || exit 1 smart update || exit 1
smart install smart || exit 1 smart install smart || exit 1
#smart install -y smart || exit 1 #smart install -y smart || exit 1
#smart install -y glibc libreadline libreadline6 libncurses libncurses5 libtirpc libtirpc1 \
# libnettle libnettle4 libgnutls libgnutls28 echo "First upgrade stage..."
echo "Upgrading, this may take a long time!" smart install -y libreadline libreadline6
smart install -y libncurses libncurses5
smart install -y libtirpc libtirpc1
smart install -y libnettle libnettle4
smart install -y libgnutls libgnutls28
if [ "$RPMARCH" == "x86_64" ]; then
smart install -y glibc glibc-multilib
else
smart install -y glibc
fi
smart install -y openmamba-install-scripts
smart install -y wxWidgets-i18n
curl http://cdn.openmamba.org/pub/openmamba/milestone4/RPMS.${RPMARCH}/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm \
-o /tmp/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm
rpm -U /tmp/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm --nodeps --force
echo "Second upgrade stage, this may take a long time!"
smart upgrade -y || exit 1 smart upgrade -y || exit 1
echo "DONE! Please reboot now."
echo "DONE! You may now REBOOT the system into openmamba ${RELEASE}."
#sleep 10
#reboot