Fix host add wrongly checking for execution (#1113)

This commit is contained in:
Itxaka
2024-10-15 10:48:29 +02:00
committed by GitHub
parent a4602db764
commit 68a790b569
2 changed files with 3 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
packages: packages:
- name: "kairos-overlay-files" - name: "kairos-overlay-files"
category: "static" category: "static"
version: "1.3.3" version: "1.3.4"

View File

@@ -4,8 +4,7 @@ stages:
# is populated when running the configuration. For those cases we insert a record so it can be # 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 # manipulated later on by yip's hostname plugin
# Read more: https://wiki.debian.org/ConfigPackages # Read more: https://wiki.debian.org/ConfigPackages
- name: "Make sure hosts file is present and includes a record for 127.0.0.1" - name: "Make sure hosts file includes a record for localhost"
if: | if: "! grep -q 'localhost' /etc/hosts"
! [[ -f /etc/hosts ]] || ! [[ $(grep '127.0.0.1' /etc/hosts) ]]
commands: commands:
- echo '127.0.0.1\tlocalhost' >> /etc/hosts - echo '127.0.0.1\tlocalhost' >> /etc/hosts