vdirsyncer/tests/storage/dav/servers/radicale/install.sh
2014-04-16 21:17:42 +02:00

18 lines
477 B
Bash

#!/bin/sh
set -e
[ -n "$REQUIREMENTS" ] || export REQUIREMENTS=release
[ -n "$RADICALE_BACKEND" ] || export RADICALE_BACKEND=filesystem
if [ "$REQUIREMENTS" = "release" ]; then
radicale_pkg="radicale"
elif [ "$REQUIREMENTS" = "devel" ]; then
radicale_pkg="git+https://github.com/Kozea/Radicale.git"
else
echo "Invalid requirements envvar"
false
fi
pip install werkzeug $radicale_pkg
if [ "$RADICALE_BACKEND" = "database" ]; then
pip install sqlalchemy
fi