accept command line parameters
parent
db37673d17
commit
23a3ced7f5
|
|
@ -21,7 +21,7 @@ fi
|
|||
|
||||
# Check password
|
||||
read apikey <"${PASSWD_FILE}"
|
||||
if [ "${param[apikey]}" != "${apikey}" ]; then
|
||||
if [ "${param[apiKey]}" != "${apiKey}" ]; then
|
||||
echo '{"error": "Invalid credentials",}'
|
||||
rm "$LOCKFILE"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue