From 584961a82ffbe64c04cb4a7c152f90164274ddb2 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Fri, 14 May 2010 11:11:05 +1000 Subject: Fixed #3721 - Removed -u option from crontab on HP-UX --- lib/puppet/util/filetype.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/util/filetype.rb b/lib/puppet/util/filetype.rb index 8e8b8dd5c..3249810b5 100755 --- a/lib/puppet/util/filetype.rb +++ b/lib/puppet/util/filetype.rb @@ -198,7 +198,7 @@ class Puppet::Util::FileType # does not think I should be allowed to set the @path to my own user name def cmdbase cmd = nil - if @uid == Puppet::Util::SUIDManager.uid + if @uid == Puppet::Util::SUIDManager.uid || Facter.value(:operatingsystem) == "HP-UX" return "crontab" else return "crontab -u #{@path}" -- cgit