From d967a242d74bf4e2c345ca402bb0ab705232bd05 Mon Sep 17 00:00:00 2001 From: alarig Date: Mon, 4 Feb 2019 11:16:06 +0100 Subject: [PATCH] Handle bird error --- check_bird2_oneshot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check_bird2_oneshot b/check_bird2_oneshot index 8115e74..d591ab0 100755 --- a/check_bird2_oneshot +++ b/check_bird2_oneshot @@ -100,6 +100,8 @@ if [ "$(cat ${DIR}/bird-err)" != '' ]; then printf "ERROR: $(cat ${DIR}/bird-err)\n" rm -r ${DIR} exit 2 +else + rm ${DIR}/bird-err fi for protocol in $(cat ${CONF_IGNORE_FILE}); do