mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-19 09:43:22 +00:00
Fix host add wrongly checking for execution (#1113)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
packages:
|
||||
- name: "kairos-overlay-files"
|
||||
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
|
||||
# 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
|
||||
|
Reference in New Issue
Block a user