mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-24 08:16:04 +02:00
Adapt to s6 logic
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
echo "Starting..."
|
|
||||||
|
|
||||||
####################
|
|
||||||
# Starting scripts #
|
|
||||||
####################
|
|
||||||
|
|
||||||
for SCRIPTS in /etc/cont-init.d/*; do
|
|
||||||
[ -e "$SCRIPTS" ] || continue
|
|
||||||
echo "$SCRIPTS: executing"
|
|
||||||
chown "$(id -u)":"$(id -g)" "$SCRIPTS"
|
|
||||||
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 "$SCRIPTS: exiting $?"
|
|
||||||
done
|
|
||||||
Reference in New Issue
Block a user