mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-26 09:05:50 +00:00
21 lines
485 B
Bash
21 lines
485 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
if [ -z "$RADICALE_BACKEND" ]; then
|
|
echo "Missing RADICALE_BACKEND"
|
|
false
|
|
fi
|
|
|
|
if [ "$REQUIREMENTS" = "release" ] || [ "$REQUIREMENTS" = "minimal" ]; 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
|