From cc1bb8f7cb699a1ab6257f1638a0b99507217bc4 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Tue, 5 Sep 2023 21:18:48 +0200 Subject: [PATCH] Force bashio --- .templates/ha_entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index defe9d0de..7f54b12d5 100644 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bashio +#!/bin/bash # shellcheck shell=bash echo "Starting..." @@ -13,7 +13,7 @@ for SCRIPTS in /etc/cont-init.d/*; do chmod a+x "$SCRIPTS" # Change shebang if no s6 supervision sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' "$SCRIPTS" - /."$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?" + bashio "$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?" rm "$SCRIPTS" done