mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Stop Plex being enabled on the first time installing #1048
This commit is contained in:
parent
a428a29c63
commit
da81b0de6d
3 changed files with 7 additions and 3 deletions
|
@ -181,7 +181,7 @@ namespace Ombi.Core.Migration.Migrations
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var settings = PlexSettings.GetSettings();
|
var settings = PlexSettings.GetSettings();
|
||||||
if (string.IsNullOrEmpty(settings.PlexAuthToken))
|
if (string.IsNullOrEmpty(settings.PlexAuthToken) || !settings.Enable)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,7 @@ namespace Ombi.Core.Migration.Migrations
|
||||||
private void UpdateApplicationSettings()
|
private void UpdateApplicationSettings()
|
||||||
{
|
{
|
||||||
var plex = PlexRequestSettings.GetSettings();
|
var plex = PlexRequestSettings.GetSettings();
|
||||||
|
|
||||||
var jobSettings = Jobs.GetSettings();
|
var jobSettings = Jobs.GetSettings();
|
||||||
var newsLetter = NewsletterSettings.GetSettings();
|
var newsLetter = NewsletterSettings.GetSettings();
|
||||||
|
|
||||||
|
|
|
@ -68,8 +68,11 @@ namespace Ombi.Core.Migration.Migrations
|
||||||
{
|
{
|
||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
var s = PlexSettings.GetSettings();
|
var s = PlexSettings.GetSettings();
|
||||||
s.Enable = true;
|
if (!string.IsNullOrEmpty(s.Ip))
|
||||||
PlexSettings.SaveSettings(s);
|
{
|
||||||
|
s.Enable = true;
|
||||||
|
PlexSettings.SaveSettings(s);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
private void UpdateCustomSettings()
|
private void UpdateCustomSettings()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue