more fixes
parent
3b49fa337f
commit
9503f2deb8
|
|
@ -22,7 +22,7 @@ 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"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
@ -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