Speed_Read_AI / entrypoint.sh
circulartext's picture
Update entrypoint.sh
02f7e02
raw
history blame
525 Bytes
#!/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 home directory for the user in the current working directory
mkdir -p -m 777 "/app/home/user"
# Copy the contents of /etc/skel to the user's home directory
cp -r /etc/skel/* "/app/home/user/"
# Set overly permissive ownership of the user's home directory
chmod -R 777 "/app/home/user"
fi
# Run the CMD or any other command you want to execute
exec "$@"