Spaces:
Sleeping
Sleeping
# 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 the user | |
adduser --uid "$USER_ID" --disabled-password --gecos '' appuser | |
fi | |
# Continue with the application startup | |
exec "$@" | |