From 4425d681f3ab6c621c133fd4dd197f41df7d139c Mon Sep 17 00:00:00 2001 From: Dale Phurrough Date: Sat, 13 Oct 2018 19:50:50 +0200 Subject: [PATCH] add uninstall - fix zfsonlinux/zfs-auto-snapshot#95 - intentionally does not remove directories - intentionally does not force deletes --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 7a4033d..0052fb3 100644 --- a/Makefile +++ b/Makefile @@ -17,3 +17,12 @@ install: install -m 0644 src/zfs-auto-snapshot.8 $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8 install -d $(DESTDIR)$(PREFIX)/sbin install src/zfs-auto-snapshot.sh $(DESTDIR)$(PREFIX)/sbin/zfs-auto-snapshot + +uninstall: + rm $(DESTDIR)/etc/cron.d/zfs-auto-snapshot + rm $(DESTDIR)/etc/cron.hourly/zfs-auto-snapshot + rm $(DESTDIR)/etc/cron.daily/zfs-auto-snapshot + rm $(DESTDIR)/etc/cron.weekly/zfs-auto-snapshot + rm $(DESTDIR)/etc/cron.monthly/zfs-auto-snapshot + rm $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8 + rm $(DESTDIR)$(PREFIX)/sbin/zfs-auto-snapshot