From cf8660a4f23c51f6810ab7adaa062c6e6a61d184 Mon Sep 17 00:00:00 2001 From: gyurix Date: Fri, 3 Sep 2021 07:12:15 +0000 Subject: [PATCH] Minor bugfixes. --- scripts/scheduler.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/scheduler.sh b/scripts/scheduler.sh index 15b6d14..1e8cff6 100755 --- a/scripts/scheduler.sh +++ b/scripts/scheduler.sh @@ -18,12 +18,11 @@ while read dir op file do - parent="/"$(echo $dir|cut -d / -f2) if [[ "${parent}" == "${CERT_DIR}" && "${op}" == "CLOSE_WRITE,CLOSE" ]] ; then DOMAIN=$(echo $dir|cut -d / -f3); - if [ -f "$CERT_DIR/new_certificate" ]; then + if [ -f "$CERT_DIR/$DOMAIN/new_certificate" ]; then echo "New cert created: '$DOMAIN'"; echo "newcert check proxy"; /scripts/check_proxy_state.sh;