docker-radicale/entrypoint.sh
2021-03-17 00:49:27 +01:00

12 lines
238 B
Bash
Executable File

#!/bin/sh
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;