Reorder steps of windows restoration

This commit is contained in:
Manuel Thalmann 2023-07-12 18:05:38 +02:00
commit 48a9234081
2 changed files with 3 additions and 2 deletions
scripts/Windows/OS

View file

@ -1,5 +1,6 @@
. "$PSScriptRoot/../Scripts/Context.ps1";
. "$PSScriptRoot/../Scripts/PersonalFiles.ps1";
. "$PSScriptRoot/../Software/Nextcloud/Manage.ps1";
. "$PSScriptRoot/../Collections/Personal.ps1";
function Backup-WindowsInstallation([Context] $context) {
@ -28,6 +29,8 @@ function Restore-WindowsInstallation([Context] $context) {
}
}
Restore-Nextcloud $context;
Write-Information "Determining Backup Archive Path";
$backupPath = Read-Path;
$context.BackupName ??= "PortValhalla";