1
0
Fork 0
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:
Greg Annandale 2015-05-27 19:18:58 -04:00
parent e69f1c831b
commit a0ba9f1c83

View file

@ -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))"