Rotary-Dial/drone/espota-deploy.sh

17 lines
291 B
Bash
Raw Normal View History

2022-11-27 12:50:47 +00:00
#!/bin/env sh
device_ip="$1"
file="$2"
curl \
--insecure \
--no-progress-meter \
--fail-with-body \
--request POST \
--url "https://espota.ctdo.de/" \
--header "Content-Type: multipart/form-data" \
--form "ip=$device_ip" \
--form "$file" \
--max-time 180 \
--no-buffer