update mac project

This commit is contained in:
Luke Pulverenti 2016-11-14 00:50:58 -05:00
parent 33db468646
commit ceaf0e2098

View File

@ -136,9 +136,9 @@ namespace MediaBrowser.Server.Mac
CertificateGenerator.CreateSelfSignCertificatePfx(certPath, certHost, _logger);
}
private static MonoEnvironmentInfo GetEnvironmentInfo()
private static EnvironmentInfo GetEnvironmentInfo()
{
var info = new MonoEnvironmentInfo();
var info = new EnvironmentInfo();
var uname = GetUnixName();
@ -155,7 +155,7 @@ namespace MediaBrowser.Server.Mac
else if (string.Equals(sysName, "BSD", StringComparison.OrdinalIgnoreCase))
{
//info.OperatingSystem = Startup.Common.OperatingSystem.Bsd;
info.IsBsd = true;
//info.IsBsd = true;
}
var archX86 = new Regex("(i|I)[3-6]86");
@ -303,15 +303,5 @@ namespace MediaBrowser.Server.Mac
return true;
}
}
public class MonoEnvironmentInfo : EnvironmentInfo
{
public bool IsBsd { get; set; }
public virtual string GetUserId()
{
return Syscall.getuid().ToString(CultureInfo.InvariantCulture);
}
}
}