fixes
parent
23a3ced7f5
commit
3b49fa337f
|
|
@ -20,7 +20,7 @@ else
|
|||
fi
|
||||
|
||||
# Check password
|
||||
read apikey <"${PASSWD_FILE}"
|
||||
read apiKey <"${PASSWD_FILE}"
|
||||
if [ "${param[apiKey]}" != "${apiKey}" ]; then
|
||||
echo '{"error": "Invalid credentials",}'
|
||||
rm "$LOCKFILE"
|
||||
|
|
@ -42,7 +42,7 @@ fi
|
|||
#echo "Waiting ..."
|
||||
sleep ${param[delay]}
|
||||
|
||||
echo '{"message": "Unlocked"}'
|
||||
echo '{"message": "Unlocked",}'
|
||||
|
||||
#echo "out" > /sys/class/gpio/gpio${PIN[7]}/direction
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue