Fixed radicale setup.
This commit is contained in:
@@ -102,8 +102,8 @@ file = %{config_dir}/rights
|
|||||||
|
|
||||||
# Storage backend
|
# Storage backend
|
||||||
# Value: multifilesystem
|
# Value: multifilesystem
|
||||||
# type = radicale_storage_by_index
|
type = radicale_storage_by_index
|
||||||
# radicale_storage_by_index_fields = dtstart, dtend, uid, summary
|
radicale_storage_by_index_fields = dtstart, dtend, uid, summary
|
||||||
|
|
||||||
# Folder for storing local collections, created if not present
|
# Folder for storing local collections, created if not present
|
||||||
filesystem_folder = %{home_dir}/collections
|
filesystem_folder = %{home_dir}/collections
|
||||||
@@ -145,9 +145,6 @@ type = none
|
|||||||
# http://docs.python.org/library/logging.config.html
|
# http://docs.python.org/library/logging.config.html
|
||||||
#config = /etc/radicale/logging
|
#config = /etc/radicale/logging
|
||||||
|
|
||||||
# Set the default logging level to debug
|
|
||||||
debug = False
|
|
||||||
|
|
||||||
# Store all environment variables (including those set in the shell)
|
# Store all environment variables (including those set in the shell)
|
||||||
#full_environment = False
|
#full_environment = False
|
||||||
|
|
||||||
|
|||||||
@@ -100,10 +100,6 @@ class Modoboa(base.Installer):
|
|||||||
if sys.version_info.major == 2 and sys.version_info.micro < 9:
|
if sys.version_info.major == 2 and sys.version_info.micro < 9:
|
||||||
# Add extra packages to fix the SNI issue
|
# Add extra packages to fix the SNI issue
|
||||||
packages += ["pyOpenSSL"]
|
packages += ["pyOpenSSL"]
|
||||||
if "modoboa-radicale" in self.extensions:
|
|
||||||
# Temp. fix
|
|
||||||
packages += [
|
|
||||||
"https://github.com/modoboa/caldav/tarball/master#egg=caldav"]
|
|
||||||
python.install_packages(
|
python.install_packages(
|
||||||
packages, self.venv_path, upgrade=self.upgrade,
|
packages, self.venv_path, upgrade=self.upgrade,
|
||||||
sudo_user=self.user
|
sudo_user=self.user
|
||||||
|
|||||||
@@ -31,12 +31,14 @@ class Radicale(base.Installer):
|
|||||||
"""Prepare a dedicated virtualenv."""
|
"""Prepare a dedicated virtualenv."""
|
||||||
python.setup_virtualenv(
|
python.setup_virtualenv(
|
||||||
self.venv_path, sudo_user=self.user, python_version=3)
|
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_packages(packages, self.venv_path, sudo_user=self.user)
|
||||||
# python.install_package_from_repository(
|
python.install_package_from_repository(
|
||||||
# "radicale-storage-by-index",
|
"radicale-storage-by-index",
|
||||||
# "https://github.com/tonioo/RadicaleStorageByIndex",
|
"https://github.com/tonioo/RadicaleStorageByIndex",
|
||||||
# venv=self.venv_path, sudo_user=self.user)
|
venv=self.venv_path, sudo_user=self.user)
|
||||||
|
|
||||||
def get_template_context(self):
|
def get_template_context(self):
|
||||||
"""Additional variables."""
|
"""Additional variables."""
|
||||||
|
|||||||
Reference in New Issue
Block a user