mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-20 02:31:39 +00:00
Fix host add wrongly checking for execution (#1113)
This commit is contained in:
@@ -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"
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user