diff --git a/charts/pihole/templates/configmap-cmdlist.yaml b/charts/pihole/templates/configmap-cmdlist.yaml index 19dd18c2..7c272911 100644 --- a/charts/pihole/templates/configmap-cmdlist.yaml +++ b/charts/pihole/templates/configmap-cmdlist.yaml @@ -11,7 +11,7 @@ metadata: data: cmdlist.sh: | # List of pihole commands to configure / reconfigure permit and deny lists - {{ if eq .Values.cmdlist.alwaysNuke true }} + {{- if eq .Values.cmdlist.alwaysNuke true }} pihole -w --nuke --noreload pihole -b --nuke --noreload pihole --white-wild --nuke --noreload @@ -20,37 +20,37 @@ data: pihole --regex --nuke --noreload pihole restartdns reload sleep 5 - {{ end }} - {{ if .Values.cmdlist.permit }} + {{- end }} + {{- if .Values.cmdlist.permit }} {{- range .Values.cmdlist.permit }} pihole -w --noreload {{ . }} --comment "Added by pihole Helm chart" {{- end }} - {{ end }} - {{ if .Values.cmdlist.deny }} + {{- end }} + {{- if .Values.cmdlist.deny }} {{- range .Values.cmdlist.deny }} pihole -b --noreload {{ . }} --comment "Added by pihole Helm chart" {{- end }} - {{ end }} - {{ if .Values.cmdlist.permitWild }} + {{- end }} + {{- if .Values.cmdlist.permitWild }} {{- range .Values.cmdlist.permitWild }} pihole --white-wild --noreload {{ . }} --comment "Added by pihole Helm chart" {{- end }} - {{ end }} - {{ if .Values.cmdlist.denyWild }} + {{- end }} + {{- if .Values.cmdlist.denyWild }} {{- range .Values.cmdlist.denyWild }} pihole --wild --noreload {{ . }} --comment "Added by pihole Helm chart" {{- end }} - {{ end }} - {{ if .Values.cmdlist.permitRegex }} + {{- end }} + {{- if .Values.cmdlist.permitRegex }} {{- range .Values.cmdlist.permitRegex }} pihole --white-regex --noreload '{{ . }}' --comment "Added by pihole Helm chart" {{- end }} - {{ end }} - {{ if .Values.cmdlist.denyRegex }} + {{- end }} + {{- if .Values.cmdlist.denyRegex }} {{- range .Values.cmdlist.denyRegex }} pihole --regex --noreload '{{ . }}' --comment "Added by pihole Helm chart" {{- end }} - {{ end }} + {{- end }} pihole restartdns reload # End of list {{ end }}