mirror of
https://github.com/authelia/authelia.git
synced 2026-10-28 09:34:52 +08:00
17 lines
367 B
Bash
Executable File
17 lines
367 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# SPDX-FileCopyrightText: 2026 Authelia
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
[ -n "${UMASK}" ] && umask "${UMASK}"
|
|
|
|
if [ -n "${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
|