From f1a78cde8b88295402b5cccc90e4cb5ea326297f Mon Sep 17 00:00:00 2001 From: Pierre Roudier Date: Thu, 2 Jan 2020 09:20:52 -0500 Subject: [PATCH] Override path like in zfs-auto-snapshot.cron.frequent --- etc/zfs-auto-snapshot.cron.daily | 2 ++ etc/zfs-auto-snapshot.cron.hourly | 2 ++ etc/zfs-auto-snapshot.cron.monthly | 2 ++ etc/zfs-auto-snapshot.cron.weekly | 2 ++ 4 files changed, 8 insertions(+) diff --git a/etc/zfs-auto-snapshot.cron.daily b/etc/zfs-auto-snapshot.cron.daily index 14fe006..3f9a5e7 100644 --- a/etc/zfs-auto-snapshot.cron.daily +++ b/etc/zfs-auto-snapshot.cron.daily @@ -1,5 +1,7 @@ #!/bin/sh +PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" + # Only call zfs-auto-snapshot if it's available which zfs-auto-snapshot > /dev/null || exit 0 diff --git a/etc/zfs-auto-snapshot.cron.hourly b/etc/zfs-auto-snapshot.cron.hourly index 5da52b1..1fb3c5d 100644 --- a/etc/zfs-auto-snapshot.cron.hourly +++ b/etc/zfs-auto-snapshot.cron.hourly @@ -1,5 +1,7 @@ #!/bin/sh +PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" + # Only call zfs-auto-snapshot if it's available which zfs-auto-snapshot > /dev/null || exit 0 diff --git a/etc/zfs-auto-snapshot.cron.monthly b/etc/zfs-auto-snapshot.cron.monthly index 2ab823f..281afe7 100644 --- a/etc/zfs-auto-snapshot.cron.monthly +++ b/etc/zfs-auto-snapshot.cron.monthly @@ -1,5 +1,7 @@ #!/bin/sh +PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" + # Only call zfs-auto-snapshot if it's available which zfs-auto-snapshot > /dev/null || exit 0 diff --git a/etc/zfs-auto-snapshot.cron.weekly b/etc/zfs-auto-snapshot.cron.weekly index 3aa977a..9fffa0c 100644 --- a/etc/zfs-auto-snapshot.cron.weekly +++ b/etc/zfs-auto-snapshot.cron.weekly @@ -1,5 +1,7 @@ #!/bin/sh +PATH="/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" + # Only call zfs-auto-snapshot if it's available which zfs-auto-snapshot > /dev/null || exit 0