This commit is contained in:
Brian Zalewski 2023-07-31 18:31:48 +00:00
parent 2d378ac8de
commit 040bb45cfd

View file

@ -233,7 +233,7 @@ fi
{{- $registrationToken := "" }} {{- $registrationToken := "" }}
{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "cloudflared" .host.hostname)) -}} {{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "cloudflared" .host.hostname)) -}}
{{- $registrationToken := (includeTemplate (joinPath "cloudflared" .host.hostname) | decrypt) -}} {{- $registrationToken := (includeTemplate (print "cloudflared/" .host.hostname) | decrypt) -}}
{{- end }} {{- end }}
### Set up CloudFlare tunnels ### Set up CloudFlare tunnels
if command -v cloudflared > /dev/null && [ -d "$HOME/.local/etc/cloudflared" ]; then if command -v cloudflared > /dev/null && [ -d "$HOME/.local/etc/cloudflared" ]; then