master
Bryan 2020-12-20 01:06:08 -06:00
parent 23a3ced7f5
commit 3b49fa337f
1 changed files with 2 additions and 2 deletions

View File

@ -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