mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-22 10:51:02 +01:00
fix(entrypoint): simplify umask handling
This commit is contained in:
@@ -9,7 +9,6 @@ UMASK=${UMASK:-022}
|
|||||||
|
|
||||||
echo "Starting with UID: $PUID, GID: $PGID, UMASK: $UMASK"
|
echo "Starting with UID: $PUID, GID: $PGID, UMASK: $UMASK"
|
||||||
|
|
||||||
# Set umask
|
|
||||||
umask "$UMASK"
|
umask "$UMASK"
|
||||||
|
|
||||||
# Create group with specified GID
|
# Create group with specified GID
|
||||||
@@ -30,6 +29,6 @@ if [ -d "/config" ]; then
|
|||||||
chown -R "$PUID:$PGID" /config
|
chown -R "$PUID:$PGID" /config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Execute the main command as the specified user with umask
|
# Execute the main command as the specified user
|
||||||
echo "Starting application as user $PUID:$PGID with umask $UMASK"
|
echo "Starting application as user $PUID:$PGID"
|
||||||
exec gosu "$PUID:$PGID" /bin/bash -c "umask $UMASK && exec $(printf '%q ' "$@")"
|
exec gosu "$PUID:$PGID" "$@"
|
||||||
Reference in New Issue
Block a user