mirror of
https://github.com/ben-grande/qusal.git
synced 2025-08-02 11:16:24 -04:00
refactor: initial commit
This commit is contained in:
commit
5eebd789ed
591 changed files with 18598 additions and 0 deletions
20
salt/utils/tools/zsh/change-shell.sls
Normal file
20
salt/utils/tools/zsh/change-shell.sls
Normal file
|
@ -0,0 +1,20 @@
|
|||
{#
|
||||
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
{% if grains['nodename'] != 'dom0' -%}
|
||||
|
||||
include:
|
||||
- .install
|
||||
|
||||
## chsh is not in Fedora and usermod covers a wider range.
|
||||
"{{ slsdotpath }}-change-user-shell-to-zsh":
|
||||
cmd.run:
|
||||
- name: usermod -s /bin/zsh user
|
||||
- runas: root
|
||||
- require:
|
||||
- sls: {{ slsdotpath }}.install
|
||||
|
||||
{% endif -%}
|
Loading…
Add table
Add a link
Reference in a new issue