Ldap WIP
This commit is contained in:
@@ -9,7 +9,7 @@ let
|
||||
"jellyfin:x:1000:"
|
||||
];
|
||||
};
|
||||
image = pkgs.dockerTools.buildImage{#pkgs.dockerTools.streamLayeredImage { #
|
||||
image = pkgs.dockerTools.streamLayeredImage { # pkgs.dockerTools.buildImage{#
|
||||
name = pkgs.jellyfin.name;
|
||||
tag = pkgs.jellyfin.version;
|
||||
contents = [ pkgs.cacert nss pkgs.jellyfin pkgs.bashInteractive ];
|
||||
@@ -48,8 +48,7 @@ in {
|
||||
containers = {
|
||||
server = builder.mkContainer {
|
||||
subdomain = containerCfg.subdomain;
|
||||
#imageStream = image;
|
||||
imageFile = image;
|
||||
imageStream = image;
|
||||
port = 8096;
|
||||
extraEnv = {
|
||||
HOME = "/config/data";
|
||||
@@ -147,6 +146,14 @@ in {
|
||||
echo "ERROR: LDAP Plugin Setup Failed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! ${pkgs.curl}/bin/curl -sSf -X POST "$JELLYFIN_URL/System/Restart" \
|
||||
-H "Authorization: MediaBrowser Token=\"$JELLYFIN_TOKEN\"" \
|
||||
-H "Content-Length: 0"; then
|
||||
echo "ERROR: Server failed to accept restart command."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Completed Setup"
|
||||
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user