1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: Permissions after installing on Windows and opening Firewall port

(cherry picked from commit ff2e8ffc372a34d08028db3c49f603cdfb87d832)
This commit is contained in:
Mark McDowall 2023-03-26 20:53:10 -07:00 committed by Qstick
parent 42c9e4e3e5
commit 926d37a572
2 changed files with 6 additions and 1 deletions

View File

@ -11,6 +11,7 @@ namespace NzbDrone.Common.EnvironmentInfo
public interface IAppFolderFactory
{
void Register();
void SetPermissions();
}
public class AppFolderFactory : IAppFolderFactory
@ -58,7 +59,7 @@ public void Register()
InitializeMonoApplicationData();
}
private void SetPermissions()
public void SetPermissions()
{
try
{

View File

@ -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("Regiser URL selected");
_remoteAccessAdapter.MakeAccessible(false);
_appFolderFactory.SetPermissions();
break;
}