X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=radicale-setup;h=531f1ecd6f995ab2e3277b256dca752d12bc905c;hb=866a0cbd9127386520def96ff49bdc8424df8112;hp=a2cbbd8163507bfc2e49e69ff8fe185c886fd7b2;hpb=69c1f384f54bba59a693c4ac9d61d8f7f3692269;p=distro-setup diff --git a/radicale-setup b/radicale-setup index a2cbbd8..531f1ec 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 <