Sonoff4ChPro/upload.sh
2025-08-29 15:16:28 +02:00

12 lines
384 B
Bash

#!/bin/bash
cd "$(dirname "$0")" || exit 1
minify index.html | sed 's|http://10.42.0.204||g' > index.html.min || exit 2
#curl -s 'http://10.42.0.204/upload/index' -F "file=@index.html.min"
#curl -s 'http://10.42.0.204/upload/icon' -F "file=@icon.svg"
curl -s 'http://10.0.0.178/upload/index' -F "file=@index.html.min"
curl -s 'http://10.0.0.178/upload/icon' -F "file=@icon.svg"