From ad295301cba3cf0a024e99275c9289dd5f1f88de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20K=C3=A5berg?= Date: Tue, 24 May 2016 20:05:31 +0200 Subject: [PATCH] cleanup * dont use uswgi * proper dav addresse's * owner wasnt set on log dir * enable on boot --- conf/nginx-primaryonly.conf | 2 -- management/templates/sync-guide.html | 4 +-- setup/radicale.sh | 49 ++++++++-------------------- 3 files changed, 15 insertions(+), 40 deletions(-) diff --git a/conf/nginx-primaryonly.conf b/conf/nginx-primaryonly.conf index 830700e6..4651ea67 100644 --- a/conf/nginx-primaryonly.conf +++ b/conf/nginx-primaryonly.conf @@ -12,8 +12,6 @@ } location /radicale { - access_log /var/log/radicale/access.log; - error_log /var/log/radicale/error.log; proxy_pass http://127.0.0.1:5232; } diff --git a/management/templates/sync-guide.html b/management/templates/sync-guide.html index 484edf2f..fc9f04b8 100644 --- a/management/templates/sync-guide.html +++ b/management/templates/sync-guide.html @@ -13,8 +13,8 @@ - - + +
For... Visit this URL
Contacts https://{{hostname}}/radicale/carddav
Calendar https://{{hostname}}/radicale/carddav
Contacts https://{{hostname}}/radicale/username@{{hostname}}/carddav
Calendar https://{{hostname}}/radicale/username@{{hostname}}/caldav

Log in settings are the same as with mail: your diff --git a/setup/radicale.sh b/setup/radicale.sh index ebf94fe2..1bacd808 100644 --- a/setup/radicale.sh +++ b/setup/radicale.sh @@ -9,24 +9,26 @@ source /etc/mailinabox.conf # load global vars echo "Installing Radicale (contacts/calendar)..." -# Cleanup after Owncloud - -if [ -d $STORAGE_ROOT/owncloud ]; then - rm -rf $STORAGE_ROOT/owncloud -fi +# Cleanup after Owncloud install if [ -d /usr/local/lib/owncloud ]; then rm -rf /usr/local/lib/owncloud fi - apt-get purge -qq -y owncloud* -# Install it -apt_install radicale uwsgi uwsgi-core +# Install radicale +apt_install radicale -# Create Directories +# Create radicale directories and set proper rights mkdir -p $STORAGE_ROOT/radicale/etc/ +chown -R www-data:www-data $STORAGE_ROOT/radicale + +# Create log directory and make radicale owner mkdir -p /var/log/radicale +chown -R radicale:radicale /var/log/radicale + +# Enable radicale on boot +sed -i '/#ENABLE_RADICALE=yes/c\ENABLE_RADICALE=yes' /etc/default/radicale # Radicale Config file cat > /etc/radicale/config < $STORAGE_ROOT/radicale/radicale.wsgi < /etc/uwsgi/apps-available/radicale <