Centralize

This commit is contained in:
Alexandre
2023-09-05 21:22:34 +02:00
parent 1b66dd5d5b
commit e0cfc723cf
36 changed files with 1 additions and 882 deletions

View File

@@ -1,25 +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 -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
rm "$SCRIPTS"
done
######################
# Starting container #
######################
echo ""
echo -e "\033[0;32mStarting the upstream container\033[0m"
echo ""