base: add evobsd_alias_fwupdate variable and make kshrc file a template so we can set or not a fw_update alias to servers that need it

This commit is contained in:
Jérémy Dubois 2023-06-13 10:36:53 +02:00
parent 8a63c8336f
commit 5ca86431eb
4 changed files with 9 additions and 4 deletions

View file

@ -72,6 +72,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* base: install ncdu and htop often used as diagnostic tools
* base: dump-server-state.sh upstream release 23.06
* evocheck: upstream release 23.06
* base: add evobsd_alias_fwupdate variable and make kshrc file a template so we can set or not a fw_update alias to servers that need it
### Fixed

View file

@ -4,6 +4,7 @@
# dotfiles.yml
evobsd_system_timeout: 36000
evobsd_path: "$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
evobsd_alias_fwupdate: false
# mail.yml
general_alert_email: "root@localhost"

View file

@ -18,8 +18,8 @@
- dotfiles
- name: "Customize .kshrc environment file"
copy:
src: kshrc
template:
src: kshrc.j2
dest: /root/.kshrc
mode: "0644"
tags:
@ -57,8 +57,8 @@
- dotfiles
- name: "Customize .kshrc environment file for new users"
copy:
src: kshrc
template:
src: kshrc.j2
dest: /etc/skel/.kshrc
mode: "0644"
tags:

View file

@ -1,3 +1,6 @@
{% if evobsd_alias_fwupdate %}
alias fw_update="{{ evobsd_alias_fwupdate }}"
{% endif %}
alias vi='vim'
sudo() { if [[ $# == "1" ]] && [[ $1 == "su" ]]; then command sudo -i; else command sudo "$@"; fi }
alias history="fc -l 0"