Skip to content

Commit 4425d68

Browse files
committed
add uninstall - fix #95
- intentionally does not remove directories - intentionally does not force deletes
1 parent 3d9992b commit 4425d68

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ install:
1717
install -m 0644 src/zfs-auto-snapshot.8 $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8
1818
install -d $(DESTDIR)$(PREFIX)/sbin
1919
install src/zfs-auto-snapshot.sh $(DESTDIR)$(PREFIX)/sbin/zfs-auto-snapshot
20+
21+
uninstall:
22+
rm $(DESTDIR)/etc/cron.d/zfs-auto-snapshot
23+
rm $(DESTDIR)/etc/cron.hourly/zfs-auto-snapshot
24+
rm $(DESTDIR)/etc/cron.daily/zfs-auto-snapshot
25+
rm $(DESTDIR)/etc/cron.weekly/zfs-auto-snapshot
26+
rm $(DESTDIR)/etc/cron.monthly/zfs-auto-snapshot
27+
rm $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8
28+
rm $(DESTDIR)$(PREFIX)/sbin/zfs-auto-snapshot

0 commit comments

Comments
 (0)