bug fixing
parent
7c36c607c1
commit
22e25d802e
|
|
@ -1,8 +1,5 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
echo "Content-type: application/json"
|
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
echo '{"message": "test message"}'
|
echo '{"message": "test message"}'
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
#! /bin/bash
|
|
||||||
|
|
||||||
# This will parse the variable $QUERY_STRING.
|
# This will parse the variable $QUERY_STRING.
|
||||||
# The values will be stored in an associative array.
|
# The values will be stored in an associative array.
|
||||||
# The value for a key will be stored in the array element `${param[<KEY>]}`
|
# The value for a key will be stored in the array element `${param[<KEY>]}`
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
echo "Content-type: application/json"
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
|
||||||
sudo /usr/local/www/cgi-bin/doorcontrol-main.cgi "$QUERY_STRING"
|
sudo /usr/local/www/cgi-bin/doorcontrol-main.cgi "$QUERY_STRING"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue