Fix
This commit is contained in:
@@ -133,7 +133,6 @@ in {
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: MediaBrowser Client=\"Bash Script\", Device=\"Server Terminal\", DeviceId=\"script-12345\", Version=\"1.0.0\"" \
|
-H "Authorization: MediaBrowser Client=\"Bash Script\", Device=\"Server Terminal\", DeviceId=\"script-12345\", Version=\"1.0.0\"" \
|
||||||
-d "{\"Username\": \"$DEFAULT_ADMIN_USERNAME\", \"Pw\": \"$DEFAULT_ADMIN_PASSWORD\"}" \
|
-d "{\"Username\": \"$DEFAULT_ADMIN_USERNAME\", \"Pw\": \"$DEFAULT_ADMIN_PASSWORD\"}" \
|
||||||
|
|
||||||
| ${pkgs.jq}/bin/jq -r '.AccessToken')
|
| ${pkgs.jq}/bin/jq -r '.AccessToken')
|
||||||
|
|
||||||
# Verify we got a token
|
# Verify we got a token
|
||||||
@@ -144,7 +143,7 @@ in {
|
|||||||
|
|
||||||
if ! ${pkgs.curl}/bin/curl -sSf -X POST "$JELLYFIN_URL/Packages/Installed/LDAP%20Authentication?assemblyGuid=958aad6637844d2ab89aa7b6fab6e25c" \
|
if ! ${pkgs.curl}/bin/curl -sSf -X POST "$JELLYFIN_URL/Packages/Installed/LDAP%20Authentication?assemblyGuid=958aad6637844d2ab89aa7b6fab6e25c" \
|
||||||
-H "Authorization: MediaBrowser Token=\"$JELLYFIN_TOKEN\"" \
|
-H "Authorization: MediaBrowser Token=\"$JELLYFIN_TOKEN\"" \
|
||||||
-H "Content-Length: 0"
|
-H "Content-Length: 0"; then
|
||||||
echo "ERROR: LDAP Plugin Setup Failed."
|
echo "ERROR: LDAP Plugin Setup Failed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user