mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
10 lines
238 B
Bash
Executable File
10 lines
238 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 |