Skip to content
Snippets Groups Projects
Commit 7e29291b authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin
Browse files

le-autoupgrade: Don't stop the upgrade if update fails

parent 67b8b012
No related branches found
No related tags found
No related merge requests found
Package: le-autoupgrade Package: le-autoupgrade
Priority: important Priority: important
Section: main Section: main
Version: 0.0.10 Version: 0.0.11
Architecture: all Architecture: all
Depends: cron | anacron, apt, debianutils, wget Depends: cron | anacron, apt, debianutils, wget
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br> Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
......
...@@ -79,11 +79,8 @@ touch $UPDATING ...@@ -79,11 +79,8 @@ touch $UPDATING
# Check if there is a "dpkg --configure -a" error # Check if there is a "dpkg --configure -a" error
run dpkg --configure -a run dpkg --configure -a
if run $APTGET update; then run $APTGET update
rm -f $UPDATING rm -f $UPDATING
else
echo "Update failed!" >> $PHYSIC_LOG
fi
if ! test -f $UPDATING && randomSleep && run $APTGET dist-upgrade -d; then if ! test -f $UPDATING && randomSleep && run $APTGET dist-upgrade -d; then
rm -f $UPGRADING rm -f $UPGRADING
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment