Skip to content

Commit

Permalink
Ensure environment is exported to supervisor
Browse files Browse the repository at this point in the history
`-E` is required to ensure that the container's environment variables
are passed on to the supervisor process, thereby making them available
to the subprocesses it starts.

Without this, variables like `NONAVSTART` would not be passed to the nav
start script, causing the variable to not have its documented effect.
  • Loading branch information
lunkwill42 committed Apr 23, 2024
1 parent 43909ae commit 9bfd62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ mydir=$(dirname $0)
# Start supervisor to control the rest of the runtime
[[ -f /source/tools/docker/supervisord.conf ]] && \
sudo cp /source/tools/docker/supervisord.conf /etc/supervisor/conf.d/nav.conf
exec sudo /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
exec sudo -E /usr/bin/supervisord -c /etc/supervisor/supervisord.conf

0 comments on commit 9bfd62f

Please sign in to comment.