Skip to content

Commit

Permalink
Fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
falsandtru committed May 4, 2015
1 parent 7eb9d2d commit 4fd2efc
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions etc/zfs-auto-snapshot.cron.daily
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#!/bin/sh
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin"
exec zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //
exec /usr/local/sbin/zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //
4 changes: 2 additions & 2 deletions etc/zfs-auto-snapshot.cron.frequent
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin"
PATH="/usr/bin:/bin:/usr/sbin:/sbin"

*/15 * * * * root zfs-auto-snapshot -q -g --label=frequent --keep=4 //
*/15 * * * * root /usr/local/sbin/zfs-auto-snapshot -q -g --label=frequent --keep=4 //

This comment has been minimized.

Copy link
@vozhyk-

vozhyk- Jan 29, 2016

What about making it depend on DESTDIR/PREFIX?
@dajhorn Would using sed in the makefile for this be a good idea?

This comment has been minimized.

Copy link
@dajhorn

dajhorn Feb 1, 2016

@vozhyk- dunno. Can you provide a diff?

This comment has been minimized.

Copy link
@vozhyk-

vozhyk- Feb 7, 2016

@dajhorn I've just put it in a pull request: zfsonlinux#50.

3 changes: 1 addition & 2 deletions etc/zfs-auto-snapshot.cron.hourly
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#!/bin/sh
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin"
exec zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //
exec /usr/local/sbin/zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //
3 changes: 1 addition & 2 deletions etc/zfs-auto-snapshot.cron.monthly
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#!/bin/sh
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin"
exec zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //
exec /usr/local/sbin/zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //
3 changes: 1 addition & 2 deletions etc/zfs-auto-snapshot.cron.weekly
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#!/bin/sh
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin"
exec zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //
exec /usr/local/sbin/zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //

0 comments on commit 4fd2efc

Please sign in to comment.