mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-12-27 09:08:51 +01:00
12 lines
283 B
Bash
Executable File
12 lines
283 B
Bash
Executable File
#!/bin/bash
|
|
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 |