amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

commit be70d122912d010c93075588802acf9bef906576
parent b59fd6adacc064977fe9d82693814a737dd92810
Author: parazyd <parazyd@dyne.org>
Date:   Tue,  4 Jul 2017 16:33:13 +0200

exit cleanly when amprolla catches an exception

Diffstat:
Morchestrate.sh | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/orchestrate.sh b/orchestrate.sh @@ -10,7 +10,10 @@ REPO_ROOT=/srv/amprolla while true; do ln -snf "$REPO_ROOT"/merged-staging "$REPO_ROOT"/merged # the break call is temporary to catch unhandled exceptions in the testing phase - python3 "$AMPROLLA_UPDATE" || break + python3 "$AMPROLLA_UPDATE" || { + ln -snf "$REPO_ROOT"/merged-production "$REPO_ROOT"/merged + break + } printf "rsyncing volatile to production...\n" rsync --delete -raX "$REPO_ROOT"/merged-volatile/* "$REPO_ROOT"/merged-production printf "done!\n"