Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/3ea59cd91b2d249b0a3933da6fa5542d1552bf86
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
18 additions and
6 deletions
@ -293,18 +293,30 @@ namespace NzbDrone.Common.Disk
var sid = new SecurityIdentifier ( accountSid , null ) ;
var directoryInfo = new DirectoryInfo ( filename ) ;
var directorySecurity = directoryInfo . GetAccessControl ( ) ;
var directorySecurity = directoryInfo . GetAccessControl ( AccessControlSections . Access ) ;
var rules = directorySecurity . GetAccessRules ( true , false , typeof ( SecurityIdentifier ) ) ;
if ( rules . OfType < FileSystemAccessRule > ( ) . Any ( acl = > acl . AccessControlType = = controlType & & ( acl . FileSystemRights & rights ) = = rights & & acl . IdentityReference . Equals ( sid ) ) )
{
return ;
}
var accessRule = new FileSystemAccessRule ( sid , rights ,
InheritanceFlags . ContainerInherit | InheritanceFlags . ObjectInherit ,
PropagationFlags . None , controlType ) ;
PropagationFlags . InheritOnly , controlType ) ;
directorySecurity . AddAccessRule ( accessRule ) ;
directoryInfo . SetAccessControl ( directorySecurity ) ;
bool modified ;
directorySecurity . ModifyAccessRule ( AccessControlModification . Add , accessRule , out modified ) ;
if ( modified )
{
directoryInfo . SetAccessControl ( directorySecurity ) ;
}
}
catch ( Exception e )
{
Logger . Warn ( e , string . Format ( "Couldn't set permission for {0}. account:{1} rights:{2} accessControlType:{3}" , filename , accountSid , rights , controlType ) ) ;
Logger . Warn ( e , "Couldn't set permission for {0}. account:{1} rights:{2} accessControlType:{3}" , filename , accountSid , rights , controlType ) ;
throw ;
}
@ -39,7 +39,7 @@ namespace NzbDrone.Common.EnvironmentInfo
{
try
{
_diskProvider . SetPermissions ( _appFolderInfo . AppDataFolder , WellKnownSidType . WorldSid , FileSystemRights . FullControl , AccessControlType . Allow ) ;
_diskProvider . SetPermissions ( _appFolderInfo . AppDataFolder , WellKnownSidType . WorldSid , FileSystemRights . Modify , AccessControlType . Allow ) ;
}
catch ( Exception ex )
{