This commit is contained in:
jonathan santis 2025-01-09 12:01:08 +01:00
parent 6fd2abeb7e
commit 05fae5d068

View File

@ -1,13 +1,15 @@
CALDIR=$HOME/.calendars CALDIR=$HOME/.calendars
file=$CALDIR/$1 file=$CALDIR/$1
mail="test@gmail.com" mail="test@gmail.com"
endpoint="https://apps.kolabnow.com/calendars"
set +o history set +o history
echo "pass argument 1: the file in the form: adressbook/file_wich_causes_issues.ics" echo "pass argument 1: the file in the form: adressbook/file_wich_causes_issues.ics"
echo $file echo $file
echo "insert PW for caldav:" echo "insert PW for caldav:"
read -s pw read -s pw
curl --verbose --user $mail:$pw -X PUT \ curl --verbose --user $mail:$pw -X PUT \
"https://apps.kolabnow.com/calendars/$mail/$1"\ "$endpoint/$mail/$1"\
-H "Content-Type:text/calendar" \ -H "Content-Type:text/calendar" \
-T $file -T $file