Add a stage for creating users

This commit is contained in:
Manuel Thalmann 2024-08-08 04:38:40 +02:00
parent 198e984bcd
commit 995959f958
2 changed files with 4 additions and 0 deletions

View file

@ -6,6 +6,7 @@ enum SetupStage {
Initialize Initialize
Configure Configure
Install Install
CreateUser
} }
$null = New-Module { $null = New-Module {

View file

@ -403,6 +403,9 @@ $null = New-Module {
([SetupStage]::Install) { ([SetupStage]::Install) {
Write-Host "Entering install phase"; Write-Host "Entering install phase";
Deploy-SoftwareAction; Deploy-SoftwareAction;
Set-Stage ([SetupStage]::CreateUser);
}
([SetupStage]::CreateUser) {
Set-IsFinished $true; Set-IsFinished $true;
} }
} }