#!/bin/bash # Radicale ########################## source setup/functions.sh # load our functions source /etc/mailinabox.conf # load global vars # ### Installing Radicale echo "Installing Radicale (contacts/calendar)..." # Cleanup after Owncloud if [ -d $STORAGE_ROOT/owncloud ]; then rm -rf $STORAGE_ROOT/owncloud fi 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 # Create Directories mkdir -p $STORAGE_ROOT/radicale/etc/ mkdir -p /var/log/radicale # Radicale Config file cat > /etc/radicale/config < $STORAGE_ROOT/radicale/etc/rights < $STORAGE_ROOT/radicale/radicale.wsgi < /etc/uwsgi/apps-available/radicale <