scripts/caldav-workaround.sh

18 lines
439 B
Bash
Raw Normal View History

CALDIR=$HOME/.calendars
file=$CALDIR/$1
2025-01-09 10:59:12 +00:00
mail="test@gmail.com"
2025-01-09 11:01:08 +00:00
endpoint="https://apps.kolabnow.com/calendars"
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 \
2025-01-09 11:01:08 +00:00
"$endpoint/$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