diff --git a/src/Ombi/Program.cs b/src/Ombi/Program.cs
index 6ccfc811a..0c27c1073 100644
--- a/src/Ombi/Program.cs
+++ b/src/Ombi/Program.cs
@@ -271,7 +271,14 @@ namespace Ombi
sb.Insert(headPosition + 6,
$"");
- 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}");
}