X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=radicale-setup;h=802e0b8401e83c078f776e0815c06f5f08906b39;hb=b857462732e15f455e41f26e3048a390d7b399c0;hp=2f22e642b6429c8917547478bdd8e2951ccad544;hpb=1ad20724a44a0ee3adc2f4a1d002850fbad7a372;p=distro-setup diff --git a/radicale-setup b/radicale-setup index 2f22e64..802e0b8 100755 --- a/radicale-setup +++ b/radicale-setup @@ -1,5 +1,5 @@ #!/bin/bash -l - +set -x [[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@" @@ -9,12 +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/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 <