Skip to content

Commit

Permalink
Fix host add wrongly checking for execution (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Oct 15, 2024
1 parent a4602db commit 68a790b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/static/kairos-overlay-files/collection.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages:
- name: "kairos-overlay-files"
category: "static"
version: "1.3.3"
version: "1.3.4"
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ stages:
# is populated when running the configuration. For those cases we insert a record so it can be
# manipulated later on by yip's hostname plugin
# Read more: https://wiki.debian.org/ConfigPackages
- name: "Make sure hosts file is present and includes a record for 127.0.0.1"
if: |
! [[ -f /etc/hosts ]] || ! [[ $(grep '127.0.0.1' /etc/hosts) ]]
- name: "Make sure hosts file includes a record for localhost"
if: "! grep -q 'localhost' /etc/hosts"
commands:
- echo '127.0.0.1\tlocalhost' >> /etc/hosts

0 comments on commit 68a790b

Please sign in to comment.