fixes
parent
caab418544
commit
7c36c607c1
|
|
@ -1,19 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
# Initialize
|
|
||||||
PASSWD_FILE="/usr/local/www/cgi-bin/passwd"
|
|
||||||
QUERY_STRING=$1
|
|
||||||
LOCKFILE="./doorcontrol-main.lock"
|
|
||||||
. parse_query_string.sh
|
|
||||||
#
|
|
||||||
|
|
||||||
echo "Content-type: application/json"
|
echo "Content-type: application/json"
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo '{"message": "test message"}'
|
echo '{"message": "test message"}'
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
# Initialize
|
||||||
|
PASSWD_FILE="/usr/local/www/cgi-bin/doorcontrol-cgi/passwd"
|
||||||
|
QUERY_STRING=$1
|
||||||
|
LOCKFILE="./doorcontrol-main.lock"
|
||||||
|
. parse_query_string.sh
|
||||||
|
#
|
||||||
|
|
||||||
# Exit if instance already running
|
# Exit if instance already running
|
||||||
if [ -e "$LOCKFILE" ]; then
|
if [ -e "$LOCKFILE" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue