diff options
author | pennae <pennae.git@eno.space> | 2023-09-27 23:42:01 +0200 |
---|---|---|
committer | pennae <pennae.git@eno.space> | 2023-09-27 23:42:01 +0200 |
commit | c7816b1fb3f0dcb16201976876d200202a1b41ff (patch) | |
tree | a54069593aef352aa44c699fe24fb52a6b03fb2b | |
parent | 01e776a5c3d6e4929e9fd7c65e6c328519040810 (diff) | |
download | dewclaw-c7816b1fb3f0dcb16201976876d200202a1b41ff.tar.gz dewclaw-c7816b1fb3f0dcb16201976876d200202a1b41ff.tar.xz dewclaw-c7816b1fb3f0dcb16201976876d200202a1b41ff.zip |
diagnose failed-but-unrecovered deployment attemps
-rw-r--r-- | openwrt/config_generation.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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/ \ |