From 463dea3d543f6c2d85e6183376e2f77528caddc8 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 25 Jul 2023 18:05:33 +0200 Subject: [PATCH] Prepare nextcloud initialization only once --- scripts/Windows/Software/Nextcloud/Manage.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Windows/Software/Nextcloud/Manage.ps1 b/scripts/Windows/Software/Nextcloud/Manage.ps1 index 08dc7b3f..16bfed51 100644 --- a/scripts/Windows/Software/Nextcloud/Manage.ps1 +++ b/scripts/Windows/Software/Nextcloud/Manage.ps1 @@ -10,12 +10,12 @@ $null = New-Module { choco install nextcloud-client -y --params="'/KeepUpdateCheck'"; } - Write-Information "Ensuring all Let's Encrypt certificates are cached"; - $null = Invoke-WebRequest https://valid-isrgrootx1.letsencrypt.org/; - if (-not (Test-Path $context.GetNextcloudConfigFile())) { Write-Information "Setting up Nextcloud configuration"; + Write-Information "Ensuring all Let's Encrypt certificates are cached"; + $null = Invoke-WebRequest https://valid-isrgrootx1.letsencrypt.org/; + while (-not (Test-Path $context.GetNextcloudConfigFile())) { Write-Host "Nextcloud has been installed!"; Read-Host "Please log in in the Nextcloud app and hit enter to continue";