diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2021-09-06 04:41:21 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2021-09-06 05:20:20 +0000 |
commit | 3ab844af266207deaed01d374508056d22228930 (patch) | |
tree | d8ee1c725e274a7fe2bae96147b9bff70d5dc0b7 /knot/Makefile | |
parent | Releasing version 20210905. (diff) | |
download | service-tools-3ab844af266207deaed01d374508056d22228930.tar.xz service-tools-3ab844af266207deaed01d374508056d22228930.zip |
Adding knot-reset-zone cron.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r-- | knot/Makefile | 9 |
1 files changed, 9 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: |