diff --git a/server/scripts/install_restore_task.ps1 b/server/scripts/install_restore_task.ps1 index 6dd6ced..03c7a82 100644 --- a/server/scripts/install_restore_task.ps1 +++ b/server/scripts/install_restore_task.ps1 @@ -141,6 +141,8 @@ foreach ($copy in Get-ChildItem -LiteralPath $copies -Recurse -File -Force) { Copy-Item -LiteralPath $copy.FullName -Destination $target -Force } Set-ProtectedAcl $target $false ($readOnly -notcontains $copy.Name) + # the user may have made the file read-only for themselves, the four texts are theirs to change + (Get-Item -LiteralPath $target -Force).IsReadOnly = $false Write-Log "restored $($copy.Name)" } catch { Write-Log "failed $($copy.Name) : $_"