circulartext commited on
Commit
515810c
·
1 Parent(s): 2d18c9d

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +8 -3
entrypoint.sh CHANGED
@@ -1,7 +1,12 @@
1
  #!/bin/bash
2
 
3
- # Custom logic or configurations
 
 
 
 
 
 
4
 
5
- # Start the main application process
6
  exec "$@"
7
-
 
1
  #!/bin/bash
2
 
3
+ # Check if the user already exists
4
+ if id "$USER_ID" >/dev/null 2>&1; then
5
+ echo "User with ID $USER_ID already exists."
6
+ else
7
+ # Create the user
8
+ adduser --uid "$USER_ID" --disabled-password --gecos '' appuser
9
+ fi
10
 
11
+ # Continue with the application startup
12
  exec "$@"