Fix immich setup
This commit is contained in:
@@ -115,6 +115,7 @@ in {
|
||||
echo "Jellyfin initialization successfully completed!"
|
||||
fi
|
||||
|
||||
${lib.optionalString (serverCfg.containers ? authentik) ''
|
||||
JELLYFIN_TOKEN=$(${pkgs.curl}/bin/curl -sSf -X POST "$JELLYFIN_URL/Users/AuthenticateByName" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: MediaBrowser Client=\"Bash Script\", Device=\"Server Terminal\", DeviceId=\"script-12345\", Version=\"1.0.0\"" \
|
||||
@@ -166,6 +167,7 @@ in {
|
||||
echo "ERROR: LDAP Plugin Setup Failed."
|
||||
exit 1
|
||||
fi
|
||||
''}
|
||||
|
||||
echo "Completed Setup"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user