1
0

Add jump-box/startup.bash
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was canceled

This commit is contained in:
2026-09-25 15:40:20 +00:00
parent 5883117aab
commit 8b03db46fa

9
jump-box/startup.bash Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash -e
echo "Setting up target user ${TARGET_USER} (uid=${TARGET_UID}, gid=${TARGET_GID})..."
groupadd --gid "$TARGET_GID" "$TARGET_USER"
adduser --gid "$TARGET_GID" --uid "$TARGET_UID" "$TARGET_USER"
chown "$TARGET_USER":"$TARGET_USER" /var/log/container-stdout.log
echo "Ready."
tail -f /var/log/container-stdout.log