Restart computer after setting up Nextcloud
This commit is contained in:
parent
b9aa78ec0d
commit
fb3ec54c13
1 changed files with 10 additions and 5 deletions
|
@ -8,13 +8,18 @@ $null = New-Module {
|
|||
|
||||
$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";
|
||||
if (-not (Test-Path $context.GetNextcloudConfigFile())) {
|
||||
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";
|
||||
|
||||
if (-not (Test-Path $context.GetNextcloudConfigFile())) {
|
||||
Write-Error "The login seems to have failed. Please try again.";
|
||||
if (-not (Test-Path $context.GetNextcloudConfigFile())) {
|
||||
Write-Error "The login seems to have failed. Please try again.";
|
||||
}
|
||||
}
|
||||
|
||||
$context.Reboot();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue