mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Updated with docs info
This commit is contained in:
parent
7289ac765c
commit
d4b265b386
1 changed files with 8 additions and 1 deletions
|
@ -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}");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue