This commit is contained in:
9
jump-box/startup.bash
Normal file
9
jump-box/startup.bash
Normal 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
|
||||||
Reference in New Issue
Block a user