Update file run_onchange_after_24-vpn-linux.tmpl
This commit is contained in:
parent
90d35fd355
commit
c035fb4b9e
1 changed files with 4 additions and 6 deletions
|
@ -1,16 +1,14 @@
|
|||
{{- if (eq .host.distro.family "linux") -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{{ $ovpnUsername := (env "OVPN_USERNAME") }}
|
||||
{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "OVPN_USERNAME")) }}
|
||||
{{ $ovpnUsername := includeTemplate "secrets/OVPN_USERNAME" | decrypt }}
|
||||
{{ else }}
|
||||
{{ $ovpnUsername := (env "OVPN_USERNAME") }}
|
||||
{{ $ovpnUsername := (includeTemplate "secrets/OVPN_USERNAME" | decrypt) }}
|
||||
{{ end }}
|
||||
|
||||
{{ $ovpnPassword := (env "OVPN_PASSWORD") }}
|
||||
{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "OVPN_PASSWORD")) }}
|
||||
{{ $ovpnPassword := includeTemplate "secrets/OVPN_PASSWORD" | decrypt }}
|
||||
{{ else }}
|
||||
{{ $ovpnPassword := (env "OVPN_PASSWORD") }}
|
||||
{{ $ovpnPassword := (includeTemplate "secrets/OVPN_PASSWORD" | decrypt) }}
|
||||
{{ end }}
|
||||
|
||||
{{ includeTemplate "universal/profile" }}
|
||||
|
|
Loading…
Reference in a new issue