mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-23 13:06:28 +01:00
18 lines
385 B
Bash
18 lines
385 B
Bash
#!/bin/bash
|
|
|
|
###########
|
|
# SCRIPTS #
|
|
###########
|
|
|
|
#for SCRIPTS in /scripts/*.sh; do
|
|
|
|
for SCRIPTS in "/00-.sh" "/00-banner.sh" "/99-run.sh"; do
|
|
[ -e "$SCRIPTS" ] || continue
|
|
echo $SCRIPTS
|
|
chown $(id -u):$(id -g) $SCRIPTS
|
|
chmod a+x $SCRIPTS
|
|
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' $SCRIPTS
|
|
/.$SCRIPTS &&
|
|
true # Prevents script crash on failure
|
|
done
|