fix(home-assistant): add an empty line after each concat (#7957)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  #7948

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Stavros Kois
2023-04-12 23:41:02 +02:00
committed by GitHub
parent 9c000ac136
commit ee4036f841
2 changed files with 22 additions and 19 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ sources:
- https://github.com/home-assistant/home-assistant - https://github.com/home-assistant/home-assistant
- https://github.com/cdr/code-server - https://github.com/cdr/code-server
type: application type: application
version: 19.0.1 version: 19.0.2
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- home-automation - home-automation
+21 -18
View File
@@ -16,7 +16,7 @@ workload:
type: init type: init
enabled: true enabled: true
imageSelector: image imageSelector: image
command: ["/config/init/init.sh"] command: /config/init/init.sh
# # Enable devices to be discoverable # # Enable devices to be discoverable
# hostNetwork: true # hostNetwork: true
@@ -53,32 +53,35 @@ configmap:
data: data:
init.sh: |- init.sh: |-
#!/bin/sh #!/bin/sh
if test -f "/config/configuration.yaml"; then config_file="/config/configuration.yaml"
if test -f "$config_file"; then
echo "configuration.yaml exists." echo "configuration.yaml exists."
if grep -q recorder: "/config/configuration.yaml"; then if grep -q recorder: "$config_file"; then
echo "configuration.yaml already contains recorder" echo "configuration.yaml already contains recorder"
else else
cat /config/init/recorder.default >> /config/configuration.yaml cat /config/init/recorder.default >> "$config_file"
fi fi
if grep -q http: "/config/configuration.yaml"; then if grep -q http: "$config_file"; then
echo "configuration.yaml already contains http section" echo "configuration.yaml already contains http section"
else else
cat /config/init/http.default >> /config/configuration.yaml cat /config/init/http.default >> "$config_file"
fi fi
else else
echo "configuration.yaml does NOT exist." echo "configuration.yaml does NOT exist."
cp /config/init/configuration.yaml.default /config/configuration.yaml cp /config/init/configuration.yaml.default "$config_file"
cat /config/init/recorder.default >> /config/configuration.yaml cat /config/init/recorder.default >> "$config_file"
cat /config/init/http.default >> /config/configuration.yaml echo "" >> "$config_file"
cat /config/init/http.default >> "$config_file"
echo "" >> "$config_file"
fi fi
echo "Creating include files..." echo "Creating include files..."
for include_file in groups.yaml automations.yaml scripts.yaml scenes.yaml; do for include_file in groups.yaml automations.yaml scripts.yaml scenes.yaml; do
if test -f "/config/$include_file"; then if test -f "/config/$include_file"; then
echo "$include_file exists." echo "$include_file exists."
else else
echo "$include_file does NOT exist." echo "$include_file does NOT exist."
touch "/config/$include_file" touch "/config/$include_file"
fi fi
done done
@@ -93,8 +96,8 @@ configmap:
wget "https://github.com/hacs/integration/releases/latest/download/hacs.zip" || exit 0 wget "https://github.com/hacs/integration/releases/latest/download/hacs.zip" || exit 0
if [ -d "/config/custom_components/hacs" ]; then if [ -d "/config/custom_components/hacs" ]; then
echo "HACS directory already exist, cleaning up..." echo "HACS directory already exist, cleaning up..."
rm -R "/config/custom_components/hacs" rm -R "/config/custom_components/hacs"
fi fi
echo "Creating HACS directory..." echo "Creating HACS directory..."
@@ -122,7 +125,7 @@ configmap:
recorder: recorder:
purge_keep_days: 30 purge_keep_days: 30
commit_interval: 3 commit_interval: 3
db_url: {{ ( printf "%s?client_encoding=utf8" ( .Values.cnpg.main.creds.std | trimAll "\"" ) ) | quote }} db_url: {{ (printf "%s?client_encoding=utf8" (.Values.cnpg.main.creds.std | trimAll "\"")) | quote }}
http.default: |- http.default: |-
http: http:
use_x_forwarded_for: true use_x_forwarded_for: true