mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
Fixed: Permissions after installing on Windows and opening Firewall port
Closes #5509
This commit is contained in:
parent
34e928ebed
commit
ff2e8ffc37
@ -14,6 +14,7 @@ namespace NzbDrone.Common.EnvironmentInfo
|
||||
public interface IAppFolderFactory
|
||||
{
|
||||
void Register();
|
||||
void SetPermissions();
|
||||
}
|
||||
|
||||
public class AppFolderFactory : IAppFolderFactory
|
||||
@ -61,7 +62,7 @@ public void Register()
|
||||
InitializeMonoApplicationData();
|
||||
}
|
||||
|
||||
private void SetPermissions()
|
||||
public void SetPermissions()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -18,18 +18,21 @@ public class UtilityModeRouter : IUtilityModeRouter
|
||||
private readonly IConsoleService _consoleService;
|
||||
private readonly IProcessProvider _processProvider;
|
||||
private readonly IRemoteAccessAdapter _remoteAccessAdapter;
|
||||
private readonly IAppFolderFactory _appFolderFactory;
|
||||
private readonly Logger _logger;
|
||||
|
||||
public UtilityModeRouter(IServiceProvider serviceProvider,
|
||||
IConsoleService consoleService,
|
||||
IProcessProvider processProvider,
|
||||
IRemoteAccessAdapter remoteAccessAdapter,
|
||||
IAppFolderFactory appFolderFactory,
|
||||
Logger logger)
|
||||
{
|
||||
_serviceProvider = serviceProvider;
|
||||
_consoleService = consoleService;
|
||||
_processProvider = processProvider;
|
||||
_remoteAccessAdapter = remoteAccessAdapter;
|
||||
_appFolderFactory = appFolderFactory;
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
@ -79,6 +82,7 @@ public void Route(ApplicationModes applicationModes)
|
||||
{
|
||||
_logger.Debug("Register URL selected");
|
||||
_remoteAccessAdapter.MakeAccessible(false);
|
||||
_appFolderFactory.SetPermissions();
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user