Enable web-based configuration updates

This commit is contained in:
2026-08-25 12:45:21 +00:00
parent ff17c46b2c
commit 00b71e0f1f
3 changed files with 51 additions and 11 deletions
+7 -3
View File
@@ -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 "$@"