Skip to content

Commit

Permalink
Changing variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
devagupt committed May 28, 2020
1 parent be3dbb7 commit 6f8021d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/windows/hubble_config_permissions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ foreach ($item in $items) {
Set-Acl $item.FullName $acl
}

$acl1 = Get-Acl $hubble_conf_file_path
$file_acl = Get-Acl $hubble_conf_file_path
foreach ($accnt in $permGroups) {
$permission = $accnt.Value, $grantedPerm, 'None', $propagationFlag, $permType
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
Write-Host $accessRule
$acl1.SetAccessRule($accessRule)
$file_acl.SetAccessRule($accessRule)
}
$acl1.SetOwner($adminsGroup)
Set-Acl $hubble_conf_file_path $acl1
$file_acl.SetOwner($adminsGroup)
Set-Acl $hubble_conf_file_path $file_acl

0 comments on commit 6f8021d

Please sign in to comment.