[scripts] make ISO push to pkg.sabayon.org a bit more robust
This commit is contained in:
parent
d741a85ae0
commit
a53c4fe207
@ -119,11 +119,22 @@ fi
|
|||||||
move_to_pkg_sabayon_org() {
|
move_to_pkg_sabayon_org() {
|
||||||
if [ -n "${DO_PUSH}" ] || [ -f /sabayon/DO_PUSH ]; then
|
if [ -n "${DO_PUSH}" ] || [ -f /sabayon/DO_PUSH ]; then
|
||||||
rm -f /sabayon/DO_PUSH
|
rm -f /sabayon/DO_PUSH
|
||||||
rsync -av --partial --delete-excluded /sabayon/iso_rsync/*DAILY* \
|
local executed=
|
||||||
entropy@pkg.sabayon.org:/sabayon/rsync/rsync.sabayon.org/iso/daily || return 1
|
for ((i=0; i < 5; i++)); do
|
||||||
rsync -av --partial --delete-excluded /sabayon/scripts/gen_html \
|
rsync -av --partial --delete-excluded /sabayon/iso_rsync/*DAILY* \
|
||||||
entropy@pkg.sabayon.org:/sabayon/rsync/iso_html_generator || return 1
|
entropy@pkg.sabayon.org:/sabayon/rsync/rsync.sabayon.org/iso/daily \
|
||||||
ssh entropy@pkg.sabayon.org /sabayon/rsync/iso_html_generator/gen_html/gen.sh
|
|| { sleep 10; continue; }
|
||||||
|
rsync -av --partial --delete-excluded /sabayon/scripts/gen_html \
|
||||||
|
entropy@pkg.sabayon.org:/sabayon/rsync/iso_html_generator \
|
||||||
|
|| { sleep 10; continue; }
|
||||||
|
ssh entropy@pkg.sabayon.org \
|
||||||
|
/sabayon/rsync/iso_html_generator/gen_html/gen.sh \
|
||||||
|
|| { sleep 10; continue; }
|
||||||
|
executed=1
|
||||||
|
break
|
||||||
|
done
|
||||||
|
[[ -n "${executed}" ]] && return 0
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user