test-copy-party / entrypoint.sh
aproxtimedev's picture
Update entrypoint.sh
347dbe8 verified
raw
history blame contribute delete
454 Bytes
#!/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