Skip to content

Commit

Permalink
use sudo instead of su
Browse files Browse the repository at this point in the history
  • Loading branch information
evan committed Aug 8, 2007
1 parent 8b3c755 commit 73babd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rv.rb
Expand Up @@ -147,7 +147,7 @@ def daemon(action, match)
when "start"
unless running
env_variables = config.map {|key, value| "RV_#{key.upcase}=#{value}"}.join(" ")
system %[nohup sudo -u #{options['user']} "#{env_variables} #{options['ruby']} #{options['harness']} #{options['null_stream']}" #{options['log_stream']} &]
system %[#{env_variables} nohup sudo -u #{options['user']} #{options['ruby']} #{options['harness']} #{options['log_stream']} &]

# wait for the app to initialize
tries = 0
Expand Down

0 comments on commit 73babd1

Please sign in to comment.