vdirsyncer/install-deps.sh
2014-03-19 16:17:50 +01:00

33 lines
764 B
Bash
Executable file

#!/bin/sh
pip install --use-mirrors .
pip install --use-mirrors -r requirements.txt
[[ -z "$DAV_SERVER" ]] && DAV_SERVER=radicale
[[ -z "$RADICALE_STORAGE" ]] && RADICALE_STORAGE=filesystem
davserver_radicale() {
pip install --use-mirrors radicale
radicale_deps
}
davserver_radicale_git() {
pip install git+https://github.com/Kozea/Radicale.git
radicale_deps
}
radicale_deps() {
pip install --use-mirrors werkzeug
radicale_storage_$RADICALE_STORAGE
}
radicale_storage_database() { pip install --use-mirrors sqlalchemy pysqlite; }
radicale_storage_filesystem() { true; }
davserver_owncloud() {
git clone https://github.com/untitaker/owncloud-testserver.git
cd ./owncloud-testserver/
sh install.sh
}
davserver_$DAV_SERVER