authelia/ci/root/etc/cont-init.d/10-adduser

29 lines
732 B
Plaintext
Raw Normal View History

2019-12-18 13:56:46 +07:00
#!/usr/bin/with-contenv bash
PUID=${PUID:-911}
PGID=${PGID:-911}
2019-12-18 21:23:23 +07:00
groupmod -o -g "$PGID" buildkite
usermod -o -u "$PUID" buildkite
2019-12-18 13:56:46 +07:00
cat <<'EOF'
--------------------------------------------
/ \ _ _| |_| |__ ___| (_) __ _
/ _ \| | | | __| '_ \ / _ \ | |/ _` |
/ ___ \ |_| | |_| | | | __/ | | (_| |
/_/ \_\__,_|\__|_| |_|\___|_|_|\__,_|
____ ___
/ ___|_ _|
| | | |
| |___ | |
\____|___|
--------------------------------------------
GID/UID
--------------------------------------------
EOF
echo "
2019-12-18 21:23:23 +07:00
User uid: $(id -u buildkite)
User gid: $(id -g buildkite)
2019-12-18 13:56:46 +07:00
--------------------------------------------
"
2019-12-18 21:23:23 +07:00
chown buildkite:buildkite /buildkite