This commit is contained in:
jonathan santis 2025-01-09 11:52:38 +01:00
parent 70442731ff
commit 3719c2f9dd

View File

@ -1,14 +1,15 @@
CALDIR=$HOME/.calendars
file=$CALDIR/$1
mail="j.wyss@kolabnow.ch"
set +o history
echo "calendar/file.ics\n"
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
curl --verbose --user j.wyss@kolabnow.ch:$pw -X PUT \
"https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1"\
curl --verbose --user $mail:$pw -X PUT \
"https://apps.kolabnow.com/calendars/$mail/$1"\
-H "Content-Type:text/calendar" \
-T $file
echo "https://apps.kolabnow.com/calendars/j.wyss@kolabnow.ch/$1"
echo "https://apps.kolabnow.com/calendars/$mail/$1"
set -o history