Skip to content

Commit

Permalink
cron.*: Use path from PREFIX for zfs-auto-snapshot
Browse files Browse the repository at this point in the history
Change "zfs-auto-snapshot" to the absolute path when installing

Inspired by #44.
  • Loading branch information
vozhyk- committed Feb 7, 2016
1 parent d5cb31a commit 8a58dec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a58dec

Please sign in to comment.