wuwei
2025-06-13 e8c9c0ca7e6c307243c158fd529c59c5a3717f2f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#保存MQTT配置
#
echo -en "Content-type: text/html; charset=utf-8\n\n"
#*****************************************************
source ../bin/env.sh
db="./db"
 
read content
 
echo "$content" > /work/mqtt_config.json
 
 
if [ $? -eq 0 ]
then
    echo "{\"code\": \"success\"}"  
else 
    echo "{\"code\": \"error\"}" 
fi
 
#echo "QUERY_STRING: '$REQUEST_METHOD' " > ./log
#echo $content >> log