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