Spaces:
Sleeping
Sleeping
File size: 279 Bytes
c379058 6bb32f9 515810c 6bb32f9 515810c c379058 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#!/bin/bash
# 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 "$@"
|