From 610236a2d93e879722f2bba3988636d46e2b2e6e Mon Sep 17 00:00:00 2001 From: Vitaut Bajaryn Date: Sun, 7 Feb 2016 12:47:12 +0100 Subject: [PATCH] cron.*: Use path from PREFIX for zfs-auto-snapshot Change "zfs-auto-snapshot" to the absolute path when installing Inspired by #44 Issue #47 --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 4b02b40..f690d5d 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ install: install etc/zfs-auto-snapshot.cron.daily $(DESTDIR)/etc/cron.daily/zfs-auto-snapshot install etc/zfs-auto-snapshot.cron.weekly $(DESTDIR)/etc/cron.weekly/zfs-auto-snapshot install etc/zfs-auto-snapshot.cron.monthly $(DESTDIR)/etc/cron.monthly/zfs-auto-snapshot + sed -i -e "s:zfs-auto-snapshot:$(DESTDIR)$(PREFIX)/sbin/zfs-auto-snapshot:g" $(DESTDIR)/etc/cron.{d,hourly,daily,weekly,monthly}/zfs-auto-snapshot install -d $(DESTDIR)$(PREFIX)/share/man/man8 install src/zfs-auto-snapshot.8 $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8 install -d $(DESTDIR)$(PREFIX)/sbin