Enable web-based configuration updates
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
# Start a compiled program.
|
||||
set -eu
|
||||
|
||||
if [ "$(id -u)" = "0" ] && [ -d /app/config ]; then
|
||||
chown -R drivershub:drivershub /app/config
|
||||
fi
|
||||
|
||||
if [ "${TRUST_HOST_PROXY:-0}" = "1" ]; then
|
||||
proxy_ip="$(ip -4 route show default | sed -n 's/^default via \([^ ]*\).*/\1/p' | head -n 1)"
|
||||
if [ -z "$proxy_ip" ]; then
|
||||
@@ -13,12 +17,12 @@ fi
|
||||
|
||||
if [ "${1:-}" = "drivershub" ]; then
|
||||
shift
|
||||
exec /app/drivershub "$@"
|
||||
exec gosu drivershub /app/drivershub "$@"
|
||||
fi
|
||||
|
||||
if [ "${1:-}" = "bannergen" ]; then
|
||||
shift
|
||||
exec /app/bannergen "$@"
|
||||
exec gosu drivershub /app/bannergen "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
exec gosu drivershub "$@"
|
||||
|
||||
Reference in New Issue
Block a user