#!/bin/sh # entrypoint.sh # Check if USERNAME env variable is set if [ -z "$USERNAME" ]; then echo "Error: USERNAME environment variable is not set." exit 1 fi # Check if PASSWORD env variable is set if [ -z "$PASSWORD" ]; then echo "Error: PASSWORD environment variable is not set." exit 1 fi # Run copyparty with auth using the USERNAME env variable cd /home/app python copyparty-sfx.py --xff-src=lan -a $USERNAME:$PASSWORD -v .::A,$USERNAME