From 90ea5d043339b311c98e54e0540316163129dda1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 30 Jul 2016 12:59:46 -0300 Subject: Set PATH at nodo-apt-auto-upgrade --- manifests/subsystem/apt.pp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'manifests/subsystem') diff --git a/manifests/subsystem/apt.pp b/manifests/subsystem/apt.pp index 83d49aa..dffd42a 100644 --- a/manifests/subsystem/apt.pp +++ b/manifests/subsystem/apt.pp @@ -17,10 +17,11 @@ class nodo::subsystem::apt( $command = "${apt} update && ${apt} dist-upgrade -y && ${apt} autoremove -y && ${apt} clean" cron { 'nodo-apt-auto-upgrade': - ensure => $auto_upgrade, - command => $command, - user => 'root', - hour => 2, - minute => 0, + ensure => $auto_upgrade, + command => $command, + environment => 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', + user => 'root', + hour => 2, + minute => 0, } } -- cgit v1.2.3