scripts/caldav-workaround.sh

16 lines
421 B
Bash
Raw Normal View History

CALDIR=$HOME/.calendars
file=$CALDIR/$1
2025-01-09 10:52:38 +00:00
mail="j.wyss@kolabnow.ch"
set +o history
2025-01-09 10:52:38 +00: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 10:52:38 +00:00
curl --verbose --user $mail:$pw -X PUT \
"https://apps.kolabnow.com/calendars/$mail/$1"\
-H "Content-Type:text/calendar" \
-T $file
2025-01-09 10:52:38 +00:00
echo "https://apps.kolabnow.com/calendars/$mail/$1"
set -o history