docker-radicale/entrypoint.sh

12 lines
240 B
Bash
Raw Normal View History

2021-03-16 23:13:50 +00:00
#!/bin/bash
if [ ! -f "$USER_FILE" ]; then
echo "No auth file found. Generating";
DIR=$(dirname $USER_FILE)
mkdir -p $DIR
htpasswd -bB -c $USER_FILE $USER $PASSWORD;
echo "Done";
fi
echo "Starting Server";
python -u -m radicale;