Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardopinosio committed Mar 21, 2024
1 parent 675b36d commit 73cdd22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ if [[ -n $HOST_UID ]] && [[ $HOST_UID != 1000 ]]; then
usermod -u "$HOST_UID" $user_name
fi

if [[ -d "/build" ]]; then
echo Changing build ownership
chown -R testuser:testuser /build
fi

echo "$1 running with user: $user_name"
echo "$user_name has uid: $(id -u testuser)"
chown "$user_name:$user_name" "$1" && chmod +x "$1"
Expand Down

0 comments on commit 73cdd22

Please sign in to comment.