File size: 291 Bytes
80db73d
2a51fee
45e3447
dfd32bf
 
2a51fee
dfd32bf
2a51fee
 
87aacc5
5783142
2a51fee
80db73d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -e

# Check if the user already exists
if id "$USER_ID" >/dev/null 2>&1; then
  echo "User with ID $USER_ID already exists."
else
  # Create a new user with the specified ID
  useradd -m -u "$USER_ID" user
fi

# Run the CMD or any other command you want to execute
exec "$@"