From 08dc2a5977b6d84a02eeadca95d52c91bda17760 Mon Sep 17 00:00:00 2001 From: Jonathan Wyss Date: Tue, 8 Oct 2024 16:26:34 +0200 Subject: [PATCH] Add workaround script when vdirsyncer bugs out on changes --- caldav-workaround.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 caldav-workaround.sh diff --git a/caldav-workaround.sh b/caldav-workaround.sh new file mode 100644 index 0000000..e92ff6d --- /dev/null +++ b/caldav-workaround.sh @@ -0,0 +1,17 @@ +CALDIR=$HOME/.calendars +file=$CALDIR/$1 +set +o history + + +echo "calendar/file.ics PW\n" +echo $file +echo "insert PW for caldav:" +read -s $pw +curl --verbose --user j.wyss@kolabnow.ch:$pw -X PUT \ + "https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1"\ + -H "Content-Type:text/calendar, If-Match: 'af036eb5632652ce-931-d41d8cd98f00b204'" \ + -T $file + +echo "https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1" + +set -o history