Sonoff4ChPro/upload.sh
2025-09-01 09:18:24 +02:00

15 lines
515 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"
curl -s 'http://10.0.0.174/upload/index' -F "file=@index.html.min"
curl -s 'http://10.0.0.174/upload/icon' -F "file=@icon.svg"