Spaces:
Sleeping
Sleeping
File size: 425 Bytes
80db73d 2a51fee 45e3447 e714b29 1f55c17 dfd32bf 2a51fee dfd32bf 206a5c8 87aacc5 5783142 2a51fee 80db73d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/bin/bash
set -e
# Set permissive permissions on the /app directory
chmod -R 777 /app
# Check if the user already exists
if id "$USER_ID" >/dev/null 2>&1; then
echo "User with ID $USER_ID already exists."
else
# Print a message about directory creation being skipped
echo "Skipping directory creation under /app. User will be created if needed."
fi
# Run the CMD or any other command you want to execute
exec "$@"
|