From 49e6e9ce561c51fbba938783c9570f8c81bdb2ba Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 24 Dec 2022 19:53:13 +0100 Subject: [PATCH] fix: merge inotifywait --exclude args inotifywait only takes the last --exclude argument --- debian/11/start.sh | 2 +- debian/12/start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/11/start.sh b/debian/11/start.sh index 924a34b..e650da1 100755 --- a/debian/11/start.sh +++ b/debian/11/start.sh @@ -11,7 +11,7 @@ sed -i 's/^# bind-dnssec-db=/bind-dnssec-db=\/var\/lib\/powerdns\/bind-dnssec-db /usr/sbin/pdns_server --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no & # watch for zone changes -inotifywait -mqre modify --exclude '\.git' --exclude '.*\.swp' --format '%w%f' "/var/lib/powerdns/zones/" | +inotifywait -mqre modify --exclude '.*(\.git|.*\.swp)' --format '%w%f' "/var/lib/powerdns/zones/" | while read -r path; do zone=$(basename $path) echo [$0] A modification was detected in $path diff --git a/debian/12/start.sh b/debian/12/start.sh index 924a34b..e650da1 100755 --- a/debian/12/start.sh +++ b/debian/12/start.sh @@ -11,7 +11,7 @@ sed -i 's/^# bind-dnssec-db=/bind-dnssec-db=\/var\/lib\/powerdns\/bind-dnssec-db /usr/sbin/pdns_server --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no & # watch for zone changes -inotifywait -mqre modify --exclude '\.git' --exclude '.*\.swp' --format '%w%f' "/var/lib/powerdns/zones/" | +inotifywait -mqre modify --exclude '.*(\.git|.*\.swp)' --format '%w%f' "/var/lib/powerdns/zones/" | while read -r path; do zone=$(basename $path) echo [$0] A modification was detected in $path