Skip to content

Commit 3027dcf

Browse files
docs(gateway): parameterize rollback path examples
1 parent 050989a commit 3027dcf

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

docs/gateway/windows-no-docker-hardening.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,21 @@ openclaw status
172172
Remove explicit ACL entries for the constrained user:
173173

174174
```powershell
175+
$Workspace = "D:\OpenClawWorkspace"
175176
$Principal = "$env:COMPUTERNAME\openclaw_bot"
176177
177-
icacls "D:\OpenClawWorkspace" /remove "$Principal" /T /C
178-
icacls "D:\OpenClawWorkspace" /remove:d "$Principal" /T /C
178+
icacls $Workspace /remove "$Principal" /T /C
179+
icacls $Workspace /remove:d "$Principal" /T /C
179180
```
180181

181182
Remove deny entries from sibling directories if you added them:
182183

183184
```powershell
185+
$Workspace = "D:\OpenClawWorkspace"
184186
$Principal = "$env:COMPUTERNAME\openclaw_bot"
185-
$Parent = "D:\"
187+
$Parent = Split-Path -Parent $Workspace
186188
Get-ChildItem -LiteralPath $Parent -Directory |
187-
Where-Object { $_.FullName -ne "D:\OpenClawWorkspace" } |
189+
Where-Object { $_.FullName -ne $Workspace } |
188190
ForEach-Object {
189191
icacls $_.FullName /remove:d "$Principal" /T /C
190192
}

0 commit comments

Comments
 (0)