Commit 47c82da24902d6dc0abe12a7e7a2ac780fd7ba95

Authored by Silvan Calarco
1 parent a3558ec237
Exists in milestone3

openmamba-dist-upgrade: script finalization after tests

Showing 1 changed file with 42 additions and 5 deletions Side-by-side Diff

openmamba-update/openmamba-dist-upgrade
... ... @@ -48,6 +48,23 @@
48 48 rm -f $SMART_FILE_MILESTONE
49 49 fi
50 50  
  51 +echo -n "
  52 +System will be upgraded to openmamba milestone4
  53 +
  54 +HINTS:
  55 +- this operation can't be reversed
  56 +- it is always a good practice to have a backup of, at least, personal important data
  57 +- broadband connection needed, possibly connect your computer to cable network
  58 +- prepare to wait, upgrade may take up to some hours depending on networks and your computer speed
  59 +- if this is a laptop plug it to AC power
  60 +- in case of problems you may find help on the forums at openmamba.org web site
  61 +
  62 +Proceed with upgrade [y/N]?"
  63 +
  64 +read ans
  65 +
  66 +[ "$ans" = "y" ] || exit 0
  67 +
51 68 echo "Upgrading current openmamba release..."
52 69 #smart update || exit 1
53 70 #smart upgrade -y || exit 1
54 71  
55 72  
56 73  
... ... @@ -408,15 +425,35 @@
408 425 _EOF
409 426 fi
410 427  
  428 +echo "Preparing for upgrade..."
411 429 rm -f /var/lib/smart/cache
412 430 rm -f /var/lib/smart/channels/*
413   -#smart install http://cdn.openmamba.org/pub/openmamba/milestone4/RPMS.${RPMARCH}/smart-1.5-9mamba.${RPMARCH}.rpm
414 431 smart update || exit 1
415 432 smart install smart || exit 1
416 433 #smart install -y smart || exit 1
417   -#smart install -y glibc libreadline libreadline6 libncurses libncurses5 libtirpc libtirpc1 \
418   -# libnettle libnettle4 libgnutls libgnutls28
419   -echo "Upgrading, this may take a long time!"
  434 +
  435 +echo "First upgrade stage..."
  436 +smart install -y libreadline libreadline6
  437 +smart install -y libncurses libncurses5
  438 +smart install -y libtirpc libtirpc1
  439 +smart install -y libnettle libnettle4
  440 +smart install -y libgnutls libgnutls28
  441 +if [ "$RPMARCH" == "x86_64" ]; then
  442 + smart install -y glibc glibc-multilib
  443 +else
  444 + smart install -y glibc
  445 +fi
  446 +smart install -y openmamba-install-scripts
  447 +smart install -y wxWidgets-i18n
  448 +
  449 +curl http://cdn.openmamba.org/pub/openmamba/milestone4/RPMS.${RPMARCH}/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm \
  450 + -o /tmp/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm
  451 +rpm -U /tmp/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm --nodeps --force
  452 +
  453 +echo "Second upgrade stage, this may take a long time!"
420 454 smart upgrade -y || exit 1
421   -echo "DONE! Please reboot now."
  455 +
  456 +echo "DONE! You may now REBOOT the system into openmamba ${RELEASE}."
  457 +#sleep 10
  458 +#reboot