From c7816b1fb3f0dcb16201976876d200202a1b41ff Mon Sep 17 00:00:00 2001 From: pennae Date: Wed, 27 Sep 2023 23:42:01 +0200 Subject: diagnose failed-but-unrecovered deployment attemps --- openwrt/config_generation.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openwrt') diff --git a/openwrt/config_generation.sh b/openwrt/config_generation.sh index a442863..8c3dde0 100644 --- a/openwrt/config_generation.sh +++ b/openwrt/config_generation.sh @@ -34,6 +34,11 @@ apply() { printf "$RED>> %s$NORMAL\n" "$*" } + if [ -e /overlay/upper.dead ]; then + log_err "previous failed deployment still needs recovery" + exit 1 + fi + if ! rm -rf /overlay/upper.prev/ \ || ! cp -al /overlay/upper/ /overlay/upper.prev/ \ || ! rm -rf /overlay/upper.prev/etc/ \ -- cgit v1.2.3