circulartext commited on
Commit
57184e7
·
1 Parent(s): 8412325

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +4 -3
entrypoint.sh CHANGED
@@ -1,8 +1,9 @@
1
  #!/bin/sh
2
 
3
- # Create a new user if the USER_ID environment variable is set
4
- if [ -n "$USER_ID" ]; then
5
- useradd -m -u "$USER_ID" user
 
6
  fi
7
 
8
  # Switch to the user
 
1
  #!/bin/sh
2
 
3
+ # Check if the user already exists
4
+ if ! id user >/dev/null 2>&1; then
5
+ # Create a new user
6
+ useradd -m -u 1000 user
7
  fi
8
 
9
  # Switch to the user