circulartext commited on
Commit
f46b72d
·
1 Parent(s): 2796752

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -3
entrypoint.sh CHANGED
@@ -5,10 +5,9 @@ set -e
5
  if id "$USER_ID" >/dev/null 2>&1; then
6
  echo "User with ID $USER_ID already exists."
7
  else
8
- # Run useradd with elevated privileges
9
- gosu root useradd -m -u "$USER_ID" user
10
  fi
11
 
12
  # Run the CMD or any other command you want to execute
13
  exec "$@"
14
-
 
5
  if id "$USER_ID" >/dev/null 2>&1; then
6
  echo "User with ID $USER_ID already exists."
7
  else
8
+ # Run useradd with sudo
9
+ sudo useradd -m -u "$USER_ID" user
10
  fi
11
 
12
  # Run the CMD or any other command you want to execute
13
  exec "$@"