docker/mod/etherpad/etherpad-export.sh

12 lines
281 B
Bash
Raw Normal View History

#!/bin/sh
2021-04-17 18:23:19 +02:00
src="$8"
dest="$(echo $8 | sed -E -e 's/html|odt/'$7'/')"
convertTo="$7"
curl -v -X POST "http://jodconverter:8080/lool/convert-to/$convertTo" \
-H "accept: application/octet-stream" \
-H "Content-Type: multipart/form-data" \
-F "data=@$src" > $dest
exit 0