diff options
| author | Phallacy <Dragoonmac@gmail.com> | 2018-12-29 08:08:35 -0800 |
|---|---|---|
| committer | Phallacy <Dragoonmac@gmail.com> | 2018-12-29 08:08:35 -0800 |
| commit | e222c2deb13c9c7043cf3745a141bd80e7c5ebb6 (patch) | |
| tree | f4dd31a40abf0d9e79e1b24512c3a42e99cb4d28 | |
| parent | b4be09898c56ccb47e6375ece26677678d8dad77 (diff) | |
fixed installer custom library path
| -rw-r--r-- | install-jellyfin.ps1 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/install-jellyfin.ps1 b/install-jellyfin.ps1 index 51a7db2f7..56c098462 100644 --- a/install-jellyfin.ps1 +++ b/install-jellyfin.ps1 @@ -156,9 +156,9 @@ function InstallJellyfin { Write-Host "Custom Install Location Chosen: $($InstallLocationBox.Text)" $Script:DefaultJellyfinInstallDirectory = $InstallLocationBox.Text } - if($Script:JellyfinDataDir -ne $LibraryLocationBox.Text){ - Write-Host "Custom Library Location Chosen: $($LibraryLocationBox.Text)" - $Script:JellyfinDataDir = $LibraryLocationBox.Text + if($Script:JellyfinDataDir -ne $CustomLibraryBox.Text){ + Write-Host "Custom Library Location Chosen: $($CustomLibraryBox.Text)" + $Script:JellyfinDataDir = $CustomLibraryBox.Text } if(-not (Test-Path $Script:DefaultJellyfinInstallDirectory)){ mkdir $Script:DefaultJellyfinInstallDirectory @@ -172,13 +172,13 @@ function InstallJellyfin { if($Script:InstallServiceAsUser){ Write-Host "Installing Service as user $($Script:UserCredentials.UserName)" &"$Script:DefaultJellyfinInstallDirectory\nssm.exe" install Jellyfin `"$Script:DefaultJellyfinInstallDirectory\jellyfin.exe`" -programdata `"$Script:JellyfinDataDir`" - Start-Sleep -Milliseconds 500 + Start-Sleep -Milliseconds 2000 &sc.exe config Jellyfin obj=".\$($Script:UserCredentials.UserName)" password="$($Script:UserCredentials.GetNetworkCredential().Password)" &"$Script:DefaultJellyfinInstallDirectory\nssm.exe" set Jellyfin Start SERVICE_DELAYED_AUTO_START }else{ Write-Host "Installing Service as LocalSystem" &"$Script:DefaultJellyfinInstallDirectory\nssm.exe" install Jellyfin `"$Script:DefaultJellyfinInstallDirectory\jellyfin.exe`" -programdata `"$Script:JellyfinDataDir`" - Start-Sleep -Milliseconds 500 + Start-Sleep -Milliseconds 2000 &"$Script:DefaultJellyfinInstallDirectory\nssm.exe" set Jellyfin Start SERVICE_DELAYED_AUTO_START } } |
