mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Allow restarts
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
# Save a copy of the script for further restarts
|
||||
##################
|
||||
# ALLOW 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
|
||||
@@ -10,6 +13,10 @@ if [ -f /etc/cont-init.d/99-run.sh ]; then
|
||||
cp /etc/cont-init.d/99-run.sh /etc/scripts-init/
|
||||
fi
|
||||
|
||||
############
|
||||
# SET MQTT #
|
||||
############
|
||||
|
||||
# Function to perform common setup steps
|
||||
common_steps () {
|
||||
# Attempt to connect to the MQTT broker
|
||||
|
||||
Reference in New Issue
Block a user