mirror of
https://github.com/cupcakearmy/docker-radicale.git
synced 2024-12-22 07:56:24 +00:00
12 lines
240 B
Bash
12 lines
240 B
Bash
|
#!/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;
|