restic formula rewrite and gitea updates
This commit is contained in:
@@ -63,9 +63,9 @@ PATH="${PATH}:${HOME}/.local/bin"
|
||||
|
||||
alias random='< /dev/urandom tr -dc A-Za-z0-9 | head -c${1:-32};echo'
|
||||
{%- if bashrc_user is defined %}
|
||||
{%- if bashrc_user == 'root' and 'restic' in pillar %}
|
||||
export RESTIC_REPOSITORY={{ salt.pillar.get('restic:repo') }}
|
||||
export RESTIC_PASSWORD={{ salt.pillar.get('restic:pass') }}
|
||||
{%- if bashrc_user == 'root' and salt.pillar.get('restic:client', None) is not none %}
|
||||
export RESTIC_REPOSITORY={{ salt.pillar.get('restic:client:repo') }}
|
||||
export RESTIC_PASSWORD={{ salt.pillar.get('restic:client:pass') }}
|
||||
{%- endif %}
|
||||
{%- for alias, cmd_str in salt.pillar.get("bash_aliases:{}".format(bashrc_user), {}).items() %}
|
||||
alias {{ alias }}="{{ cmd_str }}"
|
||||
|
||||
Reference in New Issue
Block a user