Configure the users during installation
This commit is contained in:
parent
e44ef57825
commit
de64f0e4cb
2 changed files with 32 additions and 24 deletions
scripts/Common/OS
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue