From d067d1aa1f2f7a0522af97387931bae46b6ffa4e Mon Sep 17 00:00:00 2001 From: Daniel Wenzel Date: Wed, 26 Jan 2022 02:53:14 +0100 Subject: [PATCH] =?UTF-8?q?'check=5Funifi65.sh'=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check_unifi65.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/check_unifi65.sh b/check_unifi65.sh index 231f97f..cdcf786 100644 --- a/check_unifi65.sh +++ b/check_unifi65.sh @@ -161,8 +161,7 @@ strCurlCommand="${strCurlBinary} --tlsv1 --silent --cookie ${strCookieFile} --co strLogOutAndCleanUp="${strCurlCommand} $strBaseURL/logout > /dev/null 2>&1 ; rm -f ${strCookieFile}" #Anmelden am Controller -strLoginStatus=$(${strCurlCommand} -X POST -H "Content-Type: application/json" --referer ${strBaseURL}/login --cookie ${strCookieFile} --cookie-jar ${strCookieFile} --insecure -d '{"username": "monitoring", "password": "Ye1tWJXLk5Av4Clx"}' ${strBaseURL}/api/login | ${strJQBinary} '.meta.rc') - +strLoginStatus=$(${strCurlCommand} -X POST -H "Content-Type: application/json" --referer ${strBaseURL}/login --cookie ${strCookieFile} --cookie-jar ${strCookieFile} --insecure -d "{\"username\": \"$strUsername\", \"password\": \"$strPassword\"}" ${strBaseURL}/api/login | ${strJQBinary} '.meta.rc') if [ "$strLoginStatus" != "\"ok\"" ] ; then echo "Unknown: Anmeldung am Unifi-Controller fehlgeschlagen"