2024-10-08 16:26:34 +02:00
|
|
|
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"
|
|
|
|
|
2024-10-08 16:26:34 +02:00
|
|
|
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"
|
2024-10-08 16:26:34 +02:00
|
|
|
echo $file
|
|
|
|
echo "insert PW for caldav:"
|
2024-10-08 16:37:36 +02:00
|
|
|
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"\
|
2024-10-08 16:37:36 +02:00
|
|
|
-H "Content-Type:text/calendar" \
|
2024-10-08 16:26:34 +02:00
|
|
|
-T $file
|
|
|
|
|
2025-01-09 12:04:23 +01:00
|
|
|
echo "$endpoint/$mail/$1"
|
2024-10-08 16:26:34 +02:00
|
|
|
set -o history
|