circulartext commited on
Commit
dca556b
·
1 Parent(s): 90b2859

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +5 -4
entrypoint.sh CHANGED
@@ -5,16 +5,17 @@ set -e
5
  if id "$USER_ID" >/dev/null 2>&1; then
6
  echo "User with ID $USER_ID already exists."
7
  else
8
- # Create a home directory for the user
9
- mkdir -p "/home/user"
10
 
11
  # Copy the contents of /etc/skel to the user's home directory
12
- cp -r /etc/skel/* "/home/user/"
13
 
14
  # Set ownership of the user's home directory
15
- chown -R user:user "/home/user"
16
  fi
17
 
18
  # Run the CMD or any other command you want to execute
19
  exec "$@"
20
 
 
 
5
  if id "$USER_ID" >/dev/null 2>&1; then
6
  echo "User with ID $USER_ID already exists."
7
  else
8
+ # Create a home directory for the user in the current working directory
9
+ mkdir -p "/app/home/user"
10
 
11
  # Copy the contents of /etc/skel to the user's home directory
12
+ cp -r /etc/skel/* "/app/home/user/"
13
 
14
  # Set ownership of the user's home directory
15
+ chown -R user:user "/app/home/user"
16
  fi
17
 
18
  # Run the CMD or any other command you want to execute
19
  exec "$@"
20
 
21
+