Allow creating aliae config for other users

This commit is contained in:
Manuel Thalmann 2024-09-27 02:45:51 +02:00
parent 5eae9dffdc
commit 5965918bf6

View file

@ -47,5 +47,9 @@ Start-SoftwareInstaller @PSBoundParameters `
) -join [System.Environment]::NewLine)
} `
-UserConfigurator {
Copy-Item -Force "$PSScriptRoot/aliae.yml" ~/.aliae.yaml;
param(
[hashtable] $Arguments
)
sudo -u $Arguments.Name pwsh -c Copy-Item -Force "$PSScriptRoot/aliae.yml" "~/.aliae.yaml";
};