mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 16:45:56 +02:00
Force bashio
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bashio
|
#!/bin/bash
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
echo "Starting..."
|
echo "Starting..."
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ for SCRIPTS in /etc/cont-init.d/*; do
|
|||||||
chmod a+x "$SCRIPTS"
|
chmod a+x "$SCRIPTS"
|
||||||
# Change shebang if no s6 supervision
|
# Change shebang if no s6 supervision
|
||||||
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' "$SCRIPTS"
|
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"
|
rm "$SCRIPTS"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user