scripts/caldav-workaround.sh

18 lines
417 B
Bash
Raw Normal View History

CALDIR=$HOME/.calendars
file=$CALDIR/$1
2025-04-01 21:09:43 +02:00
mail="j.wyss@kolabnow.ch"
2025-01-09 12:01:08 +01:00
endpoint="https://apps.kolabnow.com/calendars"
set +o history
2025-01-09 11:52:38 +01:00
echo "pass argument 1: the file in the form: adressbook/file_wich_causes_issues.ics"
echo $file
echo "insert PW for caldav:"
read -s pw
2025-01-09 11:52:38 +01:00
curl --verbose --user $mail:$pw -X PUT \
2025-01-09 12:01:08 +01:00
"$endpoint/$mail/$1"\
-H "Content-Type:text/calendar" \
-T $file
2025-01-09 12:04:23 +01:00
echo "$endpoint/$mail/$1"
set -o history