mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-09-24 20:02:08 +00:00
open permissions on log folder after creating/collecting logs
This commit is contained in:
@@ -43,6 +43,11 @@ echo ""
|
||||
echo " removing log folder: $logdest"
|
||||
rm -r $logdest
|
||||
|
||||
$Acl = Get-ACL $logroot
|
||||
$AccessRule= New-Object System.Security.AccessControl.FileSystemAccessRule("everyone","FullControl","ContainerInherit,Objectinherit","none","Allow")
|
||||
$Acl.AddAccessRule($AccessRule)
|
||||
Set-Acl $logroot $Acl
|
||||
|
||||
echo ""
|
||||
echo " Logs collected successfully"
|
||||
echo " Log location: ${logdest}.zip"
|
||||
|
||||
Reference in New Issue
Block a user