more fixes
parent
3b49fa337f
commit
9503f2deb8
|
|
@ -22,7 +22,7 @@ fi
|
|||
# Check password
|
||||
read apiKey <"${PASSWD_FILE}"
|
||||
if [ "${param[apiKey]}" != "${apiKey}" ]; then
|
||||
echo '{"error": "Invalid credentials",}'
|
||||
echo '{"error": "Invalid credentials"}'
|
||||
rm "$LOCKFILE"
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -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