mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
af2ae328e7
* support for running as non-root * forgot to save file * removed write perms for user on entrypoint script * preserve existing user behavior * fix entrypoint permissions to account for non-root user * typo in chmod on line 63 * better entrypoint script; moved to root * execute bit * support for running as non-root * forgot to save file * removed write perms for user on entrypoint script * preserve existing user behavior * fix entrypoint permissions to account for non-root user * typo in chmod on line 63 * better entrypoint script; moved to root * execute bit * very rough draft documentation * added missing header * typo changes -> changed * Update entrypoint.sh Co-authored-by: Amir Zarrinkafsh <nightah@me.com> * Apply suggestions from code review looks good Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
11 lines
239 B
Bash
Executable File
11 lines
239 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [[ ! -z ${1} ]] && [[ ${1} != "--config" ]]; then
|
|
exec "$@"
|
|
elif [[ $(id -u) != 0 ]] || [[ $(id -g) != 0 ]]; then
|
|
exec authelia "$@"
|
|
else
|
|
chown -R ${PUID}:${PGID} /config
|
|
exec su-exec ${PUID}:${PGID} authelia "$@"
|
|
fi
|