Changed IsDocker check (#1998)
* Refactored IsDocker to be completely static and changed to use an environment variable instead. * Removed file from another branch
This commit is contained in:
parent
57a6c769bc
commit
be5b5d9251
10 changed files with 20 additions and 77 deletions
|
|
@ -415,7 +415,9 @@ public class Startup
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if ((ex.Message.Contains("Permission denied") || ex.Message.Contains("UnauthorizedAccessException")) && baseUrl.Equals(Configuration.DefaultBaseUrl) && new OsInfo().IsDocker)
|
||||
if ((ex.Message.Contains("Permission denied")
|
||||
|| ex.Message.Contains("UnauthorizedAccessException"))
|
||||
&& baseUrl.Equals(Configuration.DefaultBaseUrl) && OsInfo.IsDocker)
|
||||
{
|
||||
// Swallow the exception as the install is non-root and Docker
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue