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

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