Store Jellyfin domain in secrets

This commit is contained in:
Manuel Thalmann 2024-11-26 16:01:38 +01:00
parent 6fabcdc304
commit df74ac2337

View file

@ -62,9 +62,9 @@ begin
sudo tee "$config" >/dev/null sudo tee "$config" >/dev/null
end end
cp "$config" "$file" cp "$secrets" "$file"
URL="https://$(getServiceDomain "$domain" "")/" yq "$(getServiceKey "$service").environment.JELLYFIN_PublishedServerUrl = env(URL)" "$file" | \ URL="https://$(getServiceDomain "$domain" "")/" yq "$(getServiceKey "$service").environment.JELLYFIN_PublishedServerUrl = env(URL)" "$file" | \
sudo tee "$config" >/dev/null sudo tee "$secrets" >/dev/null
for dir in "$root"/{downloads,config/{,jellyfin,flood,rtorrent,radarr,sonarr,lidarr,prowlarr},media/{,movies,series,music}} for dir in "$root"/{downloads,config/{,jellyfin,flood,rtorrent,radarr,sonarr,lidarr,prowlarr},media/{,movies,series,music}}
sudo mkdir -p "$dir" sudo mkdir -p "$dir"