summaryrefslogtreecommitdiffstats
path: root/knot
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-09-06 05:24:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-09-06 05:24:31 +0000
commit528988cb806e312c5bd2019f22d471a93feb922e (patch)
treeb690b553bf9bb69d798e0f2e65589030b4c95d62 /knot
parentAdding upstream version 20210905. (diff)
downloadopen-infrastructure-service-tools-upstream/20210906.tar.xz
open-infrastructure-service-tools-upstream/20210906.zip
Adding upstream version 20210906.upstream/20210906
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'knot')
-rw-r--r--knot/Makefile9
-rwxr-xr-xknot/share/cron/knot-zone-reset3
2 files changed, 12 insertions, 0 deletions
diff --git a/knot/Makefile b/knot/Makefile
index 3a2e4b9..9b3ef3b 100644
--- a/knot/Makefile
+++ b/knot/Makefile
@@ -61,6 +61,9 @@ test:
build:
install: build
+ mkdir -p $(DESTDIR)/etc/cron.d
+ cp -r share/cron/* $(DESTDIR)/etc/cron.d
+
mkdir -p $(DESTDIR)/usr/bin
cp -r bin/* $(DESTDIR)/usr/bin
@@ -71,6 +74,12 @@ uninstall:
done
rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/bin || true
+ for FILE in share/cron/*; \
+ do \
+ rm -f $(DESTDIR)/etc/cron.d/$$(basename $${FILE}); \
+ done
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/etc/cron.d || true
+
rmdir --ignore-fail-on-non-empty --parents $(DESTDIR) || true
clean:
diff --git a/knot/share/cron/knot-zone-reset b/knot/share/cron/knot-zone-reset
new file mode 100755
index 0000000..b6ec7a7
--- /dev/null
+++ b/knot/share/cron/knot-zone-reset
@@ -0,0 +1,3 @@
+# /etc/cron.d/knot-reset-zone
+
+0 0 * * * root /usr/bin/knot-reset-zone localhost > /dev/null 2>&1