vdirsyncer/tests/storage/dav/servers/radicale/install.sh
2014-05-18 19:35:08 +02:00

18 lines
483 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 wsgi_intercept $radicale_pkg
if [ "$RADICALE_BACKEND" = "database" ]; then
pip install sqlalchemy
fi