Skip to content

Commit 8a58dec

Browse files
committed
cron.*: Use path from PREFIX for zfs-auto-snapshot
Change "zfs-auto-snapshot" to the absolute path when installing Inspired by #44.
1 parent d5cb31a commit 8a58dec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ install:
1313
install etc/zfs-auto-snapshot.cron.daily $(DESTDIR)/etc/cron.daily/zfs-auto-snapshot
1414
install etc/zfs-auto-snapshot.cron.weekly $(DESTDIR)/etc/cron.weekly/zfs-auto-snapshot
1515
install etc/zfs-auto-snapshot.cron.monthly $(DESTDIR)/etc/cron.monthly/zfs-auto-snapshot
16+
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
1617
install -d $(DESTDIR)$(PREFIX)/share/man/man8
1718
install src/zfs-auto-snapshot.8 $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8
1819
install -d $(DESTDIR)$(PREFIX)/sbin

0 commit comments

Comments
 (0)