more fixes
parent
9503f2deb8
commit
dadde3e748
|
|
@ -8,9 +8,9 @@ LOCKFILE="./doorcontrol-main.lock"
|
|||
. parse_query_string.sh
|
||||
#
|
||||
|
||||
echo 'Content-type: application/json'
|
||||
echo ''
|
||||
echo ''
|
||||
echo "Content-type: application/json"
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
# Exit if instance already running
|
||||
if [ -e "$LOCKFILE" ]; then
|
||||
|
|
@ -22,7 +22,7 @@ fi
|
|||
# Check password
|
||||
read apiKey <"${PASSWD_FILE}"
|
||||
if [ "${param[apiKey]}" != "${apiKey}" ]; then
|
||||
echo '{"error": "Invalid credentials"}'
|
||||
echo '{"message": "Invalid credentials"}'
|
||||
rm "$LOCKFILE"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue