#!/bin/bash -l [[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@" # davdroid setup instructions at the bottom # main docs: # http://radicale.org/user_documentation/ # https://davdroid.bitfire.at/configuration/ # note on debugging: if radicale can't bind to the address, # in the log it just says "Starting Radicale". If you run # it in the foreground, it will give more info. Background # plus debug does not help. # sudo -u radicale radicale -D -f # created password file with: # htpasswd -c /etc/davpass dav vpn_ser=openvpn-client if [[ ! -e /lib/systemd/system/openvpn-client@.service ]]; then vpn_ser=openvpn fi d=/etc/systemd/system/radicale.service.d mkdir -p $d sudo dd of=$d/override.conf <