mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-08-02 23:12:24 +02:00
Merge pull request #894 from drinkcat/dev-pts-0-silence
entrypoint.sh: Silence errors if /dev/pts/0 does not exist
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user