Updated with docs info

This commit is contained in:
tidusjar 2021-03-01 21:25:18 +00:00
commit d4b265b386

View file

@ -271,7 +271,14 @@ namespace Ombi
sb.Insert(headPosition + 6,
$"<script type='text/javascript'>window[\"baseHref\"] = '{trimmedBaseUrl}';</script><base href=\"{trimmedBaseUrl}/\">");
await File.WriteAllTextAsync(indexPath, sb.ToString());
try
{
await File.WriteAllTextAsync(indexPath, sb.ToString());
}
catch (UnauthorizedAccessException)
{
Console.WriteLine("Error attempting to write Base URL, see here: https://docs.ombi.app/info/faq/#unauthorized-access-to-indexhtml");
}
Console.WriteLine($"Wrote new baseurl at {indexPath}");
}