Remove nginx and serve Angular directly from Spring Boot (#2662)
* feat: remove nginx and serve Angular directly from Spring Boot * fix: handle null values in EnabledFields deserialization from persisted JSON * fix(migration): auto-repair failed Flyway migrations on startup * fix(migration): replace DB triggers with app-level orphan cleanup * fix: restore default port to 6060 for backwards compatibility * fix: align all port references to 6060 and add OPDS compression MIME types * fix: resolve NG0101 recursive tick error in book browser selection --------- Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
USER_ID="${USER_ID:-1000}"
|
||||
GROUP_ID="${GROUP_ID:-1000}"
|
||||
|
||||
# Create group and user if they don't exist
|
||||
if ! getent group "$GROUP_ID" >/dev/null 2>&1; then
|
||||
addgroup -g "$GROUP_ID" -S booklore
|
||||
fi
|
||||
if ! getent passwd "$USER_ID" >/dev/null 2>&1; then
|
||||
adduser -u "$USER_ID" -G "$(getent group "$GROUP_ID" | cut -d: -f1)" -S -D booklore
|
||||
fi
|
||||
|
||||
exec su-exec "$USER_ID:$GROUP_ID" "$@"
|
||||
Reference in New Issue
Block a user