texit cleanly when amprolla catches an exception - amprolla - devuan's apt repo merger (HTM) git clone git://parazyd.org/amprolla.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit be70d122912d010c93075588802acf9bef906576 (DIR) parent b59fd6adacc064977fe9d82693814a737dd92810 (HTM) Author: parazyd <parazyd@dyne.org> Date: Tue, 4 Jul 2017 16:33:13 +0200 exit cleanly when amprolla catches an exception Diffstat: M orchestrate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- (DIR) diff --git a/orchestrate.sh b/orchestrate.sh t@@ -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"