Fix home dir permissions on first run for jump-box
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
@@ -18,6 +18,9 @@ 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
|
||||
|
||||
# This only really matters for the first-run:
|
||||
chown "$TARGET_USER":"$TARGET_USER" "/home/$TARGET_USER"
|
||||
|
||||
echo "Ready."
|
||||
tail -f /var/log/container-stdout.log &
|
||||
|
||||
|
||||
Reference in New Issue
Block a user