[scripts] make "equo update" more resilient to network issues
This commit is contained in:
@@ -4,10 +4,16 @@
|
||||
rm -f /var/run/entropy/entropy.lock
|
||||
|
||||
export FORCE_EAPI=2
|
||||
equo update
|
||||
if [ "${?}" != "0" ]; then
|
||||
sleep 1200 || exit 1
|
||||
equo update || exit 1
|
||||
updated=0
|
||||
for ((i=0; i < 6; i++)); do
|
||||
equo update && {
|
||||
updated=1;
|
||||
break;
|
||||
}
|
||||
sleep 1200 || exit 1
|
||||
done
|
||||
if [ "${updated}" = "0" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# disable all mirrors but GARR
|
||||
|
||||
Reference in New Issue
Block a user