[scripts] make "equo update" more resilient to network issues
This commit is contained in:
parent
e4da6149e9
commit
73ea097055
@ -4,10 +4,16 @@
|
|||||||
rm -f /var/run/entropy/entropy.lock
|
rm -f /var/run/entropy/entropy.lock
|
||||||
|
|
||||||
export FORCE_EAPI=2
|
export FORCE_EAPI=2
|
||||||
equo update
|
updated=0
|
||||||
if [ "${?}" != "0" ]; then
|
for ((i=0; i < 6; i++)); do
|
||||||
sleep 1200 || exit 1
|
equo update && {
|
||||||
equo update || exit 1
|
updated=1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
sleep 1200 || exit 1
|
||||||
|
done
|
||||||
|
if [ "${updated}" = "0" ]; then
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# disable all mirrors but GARR
|
# disable all mirrors but GARR
|
||||||
|
@ -9,13 +9,20 @@ if [ -d "/usr/portage/licenses" ]; then
|
|||||||
export ACCEPT_LICENSE="$(ls /usr/portage/licenses -1 | xargs)"
|
export ACCEPT_LICENSE="$(ls /usr/portage/licenses -1 | xargs)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export ETP_NOINTERACTIVE=1
|
|
||||||
export FORCE_EAPI=2
|
export FORCE_EAPI=2
|
||||||
equo update
|
updated=0
|
||||||
if [ "${?}" != "0" ]; then
|
for ((i=0; i < 6; i++)); do
|
||||||
|
equo update && {
|
||||||
|
updated=1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
sleep 1200 || exit 1
|
sleep 1200 || exit 1
|
||||||
equo update || exit 1
|
done
|
||||||
|
if [ "${updated}" = "0" ]; then
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export ETP_NOINTERACTIVE=1
|
||||||
equo upgrade || exit 1
|
equo upgrade || exit 1
|
||||||
echo "-5" | equo conf update
|
echo "-5" | equo conf update
|
||||||
rm -rf /var/lib/entropy/client/packages
|
rm -rf /var/lib/entropy/client/packages
|
||||||
|
@ -4,10 +4,16 @@
|
|||||||
rm -f /var/run/entropy/entropy.lock
|
rm -f /var/run/entropy/entropy.lock
|
||||||
|
|
||||||
export FORCE_EAPI=2
|
export FORCE_EAPI=2
|
||||||
equo update
|
updated=0
|
||||||
if [ "${?}" != "0" ]; then
|
for ((i=0; i < 6; i++)); do
|
||||||
sleep 1200 || exit 1
|
equo update && {
|
||||||
equo update || exit 1
|
updated=1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
sleep 1200 || exit 1
|
||||||
|
done
|
||||||
|
if [ "${updated}" = "0" ]; then
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# disable all mirrors but GARR
|
# disable all mirrors but GARR
|
||||||
|
Loading…
Reference in New Issue
Block a user