Skip to content

Commit

Permalink
Fix RHEL check in zarf init package to avoid infinite retry loop
Browse files Browse the repository at this point in the history
  • Loading branch information
YrrepNoj authored and jeff-mccoy committed Feb 8, 2022
1 parent 9d5c28a commit 39f8a7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ components:
before:
# If running RHEL variant, disable firewalld
# https://rancher.com/docs/k3s/latest/en/advanced/#additional-preparation-for-red-hat-centos-enterprise-linux
- "[ -e /etc/redhat-release ] && systemctl disable firewalld --now"
# NOTE: The empty echo prevents infinate retry loops on non-RHEL systems where the exit code would be an error
- "[ -e /etc/redhat-release ] && systemctl disable firewalld --now || echo ''"
after:
# Configure K3s systemd service
- "systemctl daemon-reload"
Expand Down

0 comments on commit 39f8a7b

Please sign in to comment.