mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-19 22:09:14 +02:00
Update ha_entrypoint.sh
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# Detect if this is PID1 (main process) #
|
# Detect if this is PID1 (main process) #
|
||||||
@@ -152,11 +151,6 @@ echo "Selected shebang: #!$shebang"
|
|||||||
# Starting scripts #
|
# Starting scripts #
|
||||||
####################
|
####################
|
||||||
|
|
||||||
if [ -f /docker-mods ]; then
|
|
||||||
echo "Running docker mods"
|
|
||||||
/docker-mods
|
|
||||||
fi
|
|
||||||
|
|
||||||
run_one_script() {
|
run_one_script() {
|
||||||
local script="$1"
|
local script="$1"
|
||||||
|
|
||||||
@@ -247,4 +241,7 @@ else
|
|||||||
echo " "
|
echo " "
|
||||||
echo -e "\033[0;32mStarting the upstream container\033[0m"
|
echo -e "\033[0;32mStarting the upstream container\033[0m"
|
||||||
echo " "
|
echo " "
|
||||||
|
if [ -f /docker-mods ]; then
|
||||||
|
exec /docker-mods
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user