Fix the output of the Nextcloud configuration file
This commit is contained in:
parent
4075bab13e
commit
5b9f22eec2
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ class Context {
|
||||||
|
|
||||||
$oldContent = Get-Content ($this.GetNextcloudConfigFile());
|
$oldContent = Get-Content ($this.GetNextcloudConfigFile());
|
||||||
|
|
||||||
[string[]]$(
|
$(
|
||||||
for ($i = 0; $i -lt $oldContent.Count; $i++) {
|
for ($i = 0; $i -lt $oldContent.Count; $i++) {
|
||||||
if ($_ -eq "[Accounts]") {
|
if ($_ -eq "[Accounts]") {
|
||||||
$accountSectionEntered = $true;
|
$accountSectionEntered = $true;
|
||||||
|
@ -304,7 +304,7 @@ class Context {
|
||||||
}) | Set-Content ($this.GetNextcloudConfigFile());
|
}) | Set-Content ($this.GetNextcloudConfigFile());
|
||||||
|
|
||||||
Write-Information "New nextcloud config:";
|
Write-Information "New nextcloud config:";
|
||||||
Write-Information (Get-Content $($this.GetNextcloudConfigFile()));
|
Write-Information (Get-Content $($this.GetNextcloudConfigFile()) | Out-String);
|
||||||
|
|
||||||
Write-Information "Restarting Nextcloud";
|
Write-Information "Restarting Nextcloud";
|
||||||
Start-Process $nextcloudPath;
|
Start-Process $nextcloudPath;
|
||||||
|
|
Loading…
Reference in a new issue