1
0
Fork 0

vpn: fix chezmoi tpl

This commit is contained in:
Vladimír Dudr 2024-10-18 09:24:00 +02:00
parent a5c73d5c8e
commit 130003e0ae

View file

@ -5,7 +5,7 @@ then
exec sudo "$(realpath "$0")" "$@"
fi
openvpn --config <(sudo -u {{ .chezmoi.user }} {{ .chezmoi.config.gopass.command }} show metrans{{ .chezmoi.pathSeparator }}vpn tcp.ovpn) --askpass <(sudo -u {{ .chezmoi.user }} {{ .chezmoi.config.gopass.command }} show metrans{{ .chezmoi.pathSeparator }}vpn) &
openvpn --config <(sudo -u {{ .chezmoi.username }} {{ .chezmoi.config.gopass.command }} show metrans{{ .chezmoi.pathSeparator }}vpn tcp.ovpn) --askpass <(sudo -u {{ .chezmoi.username }} {{ .chezmoi.config.gopass.command }} show metrans{{ .chezmoi.pathSeparator }}vpn) &
ovpn=$?
set -v
until ip l show dev metrans &>{{ .chezmoi.pathSeparator }}dev{{ .chezmoi.pathSeparator }}null