mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Added example sourcing of environment vars
This commit is contained in:
parent
e69f1c831b
commit
a0ba9f1c83
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ script
|
|||
# quoted heredoc to tell /bin/sh not to interpret
|
||||
# variables
|
||||
|
||||
# source ENV variables manually as Upstart doesn't, eg:
|
||||
#. /etc/environment
|
||||
|
||||
exec /bin/bash <<'EOT'
|
||||
# set HOME to the setuid user's home, there doesn't seem to be a better, portable way
|
||||
export HOME="$(eval echo ~$(id -un))"
|
||||
|
|
Loading…
Add table
Reference in a new issue