mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-24 08:16:04 +02:00
Update 33-mqtt.sh
This commit is contained in:
@@ -2,6 +2,14 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Save a copy of the script for further restarts
|
||||||
|
if [ -f /etc/cont-init.d/99-run.sh ]; then
|
||||||
|
mkdir -p /etc/scripts-init
|
||||||
|
sed -i "s|/etc/cont-init.d|/etc/scripts-init|g" /ha_entrypoint.sh
|
||||||
|
sed -i "/ rm/d" /ha_entrypoint.sh
|
||||||
|
cp /etc/cont-init.d/99-run.sh /etc/scripts-init/
|
||||||
|
fi
|
||||||
|
|
||||||
# Function to perform common setup steps
|
# Function to perform common setup steps
|
||||||
common_steps () {
|
common_steps () {
|
||||||
# Attempt to connect to the MQTT broker
|
# Attempt to connect to the MQTT broker
|
||||||
|
|||||||
Reference in New Issue
Block a user