diff options
author | elijah <elijah@riseup.net> | 2014-11-10 15:54:22 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-11-10 15:54:22 -0800 |
commit | 9405a5acf470035aed2985f583c9ac386c637ae4 (patch) | |
tree | 0892e66e0b5d90d5bc84203722e8808f4c40f58d /bin | |
parent | e8bf5ceb913863e8a7e2dd95d503f1eddcaf0dcb (diff) |
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/tapicero | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/tapicero b/bin/tapicero index 42030d1..d3a9bf8 100755 --- a/bin/tapicero +++ b/bin/tapicero @@ -61,7 +61,7 @@ end # Start the daemon # require 'daemons' -if ENV["USER"] == "root" +if Process::Sys.getuid == 0 options = {:app_name => 'tapicero', :dir_mode => :system} # this will put the pid file in /var/run else options = {:app_name => 'tapicero', :dir_mode => :normal, :dir => '/tmp'} # this will put the pid file in /tmp |