a5b4203496
- /home/.chezmoiscripts/darwin/run_onchange_after_10-configure-macos.sh.tmpl - /home/.chezmoiscripts/darwin/run_onchange_after_20-ensure-zsh-macos.sh.tmpl - /home/.chezmoiscripts/darwin/run_onchange_after_21-set-wallpaper.sh.tmpl - /home/.chezmoiscripts/darwin/run_onchange_before_10-install-darwin-dependencies.sh.tmpl - /home/.chezmoiscripts/darwin/run_onchange_before_20-ensure-user-group.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_10-configure-macos.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_20-ensure-zsh-macos.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_21-set-wallpaper.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_10-install-darwin-dependencies.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_20-ensure-user-group.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_after_11-set-wallpaper.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_19-setup-sys-gui.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_18-configure-sys-usb.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_17-install-mirage-firewall.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_16-update-template-vms.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_15-install-unofficial-templates.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_14-ensure-minimal-vms-passwordless.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_13-install-official-templates.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_12-update-dom0.sh.tmpl
14 lines
659 B
Cheetah
14 lines
659 B
Cheetah
{{- if (ne .host.distro.family "darwin") -}}
|
|
#!/usr/bin/env bash
|
|
# @file macOS Ensure User Group
|
|
# @brief Ensures that the provisioning user has a group on the system with the same name
|
|
# @description
|
|
# This script ensures that there is a group with the same name of the provisioning user available on the system.
|
|
|
|
{{ includeTemplate "universal/profile-before" }}
|
|
{{ includeTemplate "universal/logg-before" }}
|
|
|
|
### Ensure user has group of same name (required for Macports)
|
|
logg info 'Ensuring user has a group with the same name and that it is a member. Sudo privileges may be required'
|
|
echo y | sudo dseditgroup -o create "$USER" > /dev/null
|
|
{{ end -}}
|