Configure the users during installation

This commit is contained in:
Manuel Thalmann 2024-09-13 17:36:29 +02:00
parent e44ef57825
commit de64f0e4cb
2 changed files with 32 additions and 24 deletions
scripts/Common/OS

View file

@ -35,6 +35,7 @@ else
end
end
set -l deployScript (getDeploymentScript)
runHook initialize || true
and runHook installOS || true
@ -43,10 +44,17 @@ else
end
and runHook installSoftware || begin
set -l script (getDeploymentScript)
if [ -n "$deployScript" ]
source $deployScript
end
end
if [ -n "$script" ]
source $script
runHook initializeUsers || begin
if [ -n "$deployScript" ]
source "$dir/../Scripts/config.fish"
for name in (getUsers | jq '.[]' --raw-output0 | string split0)
source $deployScript userConfig $name
end
end
end