Permalink
Browse files

USER variable not present in crontab, using LOGNAME

  • Loading branch information...
1 parent 096c419 commit 28f2931dccbf6a96ca9f028b5a2dd97009951b1d Darwin committed Aug 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 postgres_gmetric.rb
View
@@ -26,7 +26,7 @@
$options[:verbose] = true
end
- $options[:user] = ENV['USER']
+ $options[:user] = ENV['LOGNAME']
opts.on( '-U', '--user USER', 'Connect as USER' ) do |user|
$options[:user] = user
end

0 comments on commit 28f2931

Please sign in to comment.