Update .local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_before_20-ensure-user-group
This commit is contained in:
parent
91d693760a
commit
a3c41fcbae
2 changed files with 8 additions and 4 deletions
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
### Ensure user has group of same name
|
|
||||||
echo y | sudo dseditgroup -o create "$USER"
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
{{ includeTemplate "universal/profile" }}
|
||||||
|
{{ includeTemplate "universal/logg" }}
|
||||||
|
|
||||||
|
### Ensure user has group of same name
|
||||||
|
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
|
Loading…
Reference in a new issue