All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
15 lines
485 B
Bash
15 lines
485 B
Bash
#!/bin/bash -e
|
|
|
|
echo "Setting up target user ${TARGET_USER} (uid=${TARGET_UID}, gid=${TARGET_GID})..."
|
|
groupadd --gid "$TARGET_GID" "$TARGET_USER"
|
|
|
|
# --no-create-home since we assume the home dir will be mounted in the container
|
|
adduser --gid "$TARGET_GID" --uid "$TARGET_UID" --no-create-home "$TARGET_USER"
|
|
touch /var/log/container-stdout.log
|
|
chown "$TARGET_USER":"$TARGET_USER" /var/log/container-stdout.log
|
|
|
|
echo "Ready."
|
|
tail -f /var/log/container-stdout.log &
|
|
|
|
/usr/sbin/sshd -D
|