mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-31 09:55:55 +00:00
18 lines
483 B
Bash
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
|