Fix the output of the Nextcloud configuration file

This commit is contained in:
Manuel Thalmann 2023-07-25 12:39:45 +02:00
parent 7ef31d4e95
commit 842bf7f2ea

View file

@ -283,7 +283,7 @@ class Context {
$oldContent = Get-Content ($this.GetNextcloudConfigFile());
[string[]]$(
$(
for ($i = 0; $i -lt $oldContent.Count; $i++) {
if ($_ -eq "[Accounts]") {
$accountSectionEntered = $true;
@ -304,7 +304,7 @@ class Context {
}) | Set-Content ($this.GetNextcloudConfigFile());
Write-Information "New nextcloud config:";
Write-Information (Get-Content $($this.GetNextcloudConfigFile()));
Write-Information (Get-Content $($this.GetNextcloudConfigFile()) | Out-String);
Write-Information "Restarting Nextcloud";
Start-Process $nextcloudPath;