X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=radicale-setup;h=ba8fde2321caee3450edb466d0236f1d2e585075;hb=8a6b446c7e336596af614c853e1c6177e55a7983;hp=631bf427fc691b1a15e5041e8e1491ced254bc94;hpb=4f1b3daa120bbbf886af22bf15ee8b65b13d0eb8;p=distro-setup diff --git a/radicale-setup b/radicale-setup index 631bf42..ba8fde2 100755 --- a/radicale-setup +++ b/radicale-setup @@ -1,5 +1,5 @@ #!/bin/bash -l - +set -x [[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@" @@ -9,14 +9,49 @@ # 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/nginx/caldav/htpasswd ian - +# 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 <