From 130003e0ae6bdb2dc0edb6e5ed4b2448eff14a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Dudr?= Date: Fri, 18 Oct 2024 09:24:00 +0200 Subject: [PATCH] vpn: fix chezmoi tpl --- bin/executable_metvpn.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/executable_metvpn.tmpl b/bin/executable_metvpn.tmpl index e4e489f..1147c86 100644 --- a/bin/executable_metvpn.tmpl +++ b/bin/executable_metvpn.tmpl @@ -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