entrypoint.sh: Silence errors if /dev/pts/0 does not exist

This commit is contained in:
Nicolas Boichat
2025-07-02 11:41:08 +08:00
parent 3deaae3929
commit 52604c0b66

View File

@@ -28,7 +28,7 @@ if [[ -n $BUILDER_UID ]] && [[ -n $BUILDER_GID ]]; then
useradd -o -m -g "$BUILDER_GID" -u "$BUILDER_UID" "$BUILDER_USER" 2> /dev/null useradd -o -m -g "$BUILDER_GID" -u "$BUILDER_UID" "$BUILDER_USER" 2> /dev/null
# Change ownership of /dev/pts/0 to new user # Change ownership of /dev/pts/0 to new user
chown "$BUILDER_UID" /dev/pts/0 chown "$BUILDER_UID" /dev/pts/0 2> /dev/null
export HOME=/home/${BUILDER_USER} export HOME=/home/${BUILDER_USER}
shopt -s dotglob shopt -s dotglob