Fixed radicale setup.

This commit is contained in:
Antoine Nguyen
2020-09-17 21:19:54 +02:00
parent e5805fda84
commit 1960e29c97
3 changed files with 9 additions and 14 deletions

View File

@@ -31,12 +31,14 @@ class Radicale(base.Installer):
"""Prepare a dedicated virtualenv."""
python.setup_virtualenv(
self.venv_path, sudo_user=self.user, python_version=3)
packages = ["Radicale==2.1.12", "radicale-dovecot-auth", "pytz"]
packages = [
"Radicale", "radicale-dovecot-auth", "pytz"
]
python.install_packages(packages, self.venv_path, sudo_user=self.user)
# python.install_package_from_repository(
# "radicale-storage-by-index",
# "https://github.com/tonioo/RadicaleStorageByIndex",
# venv=self.venv_path, sudo_user=self.user)
python.install_package_from_repository(
"radicale-storage-by-index",
"https://github.com/tonioo/RadicaleStorageByIndex",
venv=self.venv_path, sudo_user=self.user)
def get_template_context(self):
"""Additional variables."""