mirror of
https://github.com/booklore-app/booklore.git
synced 2026-02-17 16:07:55 +01:00
* 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>
16 lines
397 B
Bash
16 lines
397 B
Bash
#!/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" "$@"
|