From 30d094b44256b507280f085208b186adca047248 Mon Sep 17 00:00:00 2001 From: gyurix Date: Thu, 17 Aug 2023 11:37:08 +0000 Subject: [PATCH] Added exact pattern for excluding changes --- Dockerfile | 2 +- scripts/scheduler.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c36ed60..d726a95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM proxy-scheduler:latest COPY scripts /scripts -COPY firewall-letsencrypt.json /firewall-files +COPY firewall-letsencrypt.json /firewall-files/ ENTRYPOINT ["/scripts/scheduler.sh"] diff --git a/scripts/scheduler.sh b/scripts/scheduler.sh index 96937a3..3c141fa 100755 --- a/scripts/scheduler.sh +++ b/scripts/scheduler.sh @@ -17,7 +17,7 @@ mkdir -p $CERT_DIR unset IFS -inotifywait --exclude .sw -m -e CREATE,CLOSE_WRITE,DELETE,MOVED_TO -r $DOMAIN_DIR $CERT_DIR $PROXY_CONFIG_DIR | \ +inotifywait --exclude \.(swp|tmp) -m -e CREATE,CLOSE_WRITE,DELETE,MOVED_TO -r $DOMAIN_DIR $CERT_DIR $PROXY_CONFIG_DIR | \ while read dir op file do