Skip to content

Commit

Permalink
minor cosmetic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
specialcircumstances committed Dec 21, 2023
1 parent 204c385 commit 8277f07
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions charts/pihole/templates/configmap-cmdlist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 8277f07

Please sign in to comment.