Files
hassio-addons/enedisgateway2mqtt_dev/rootfs/entrypoint.sh
Alexandre 74ffa6ec1c cd /
2021-12-07 21:56:10 +01:00

18 lines
378 B
Bash

#!/bin/bash
echo "Starting..."
####################
# Starting scripts #
####################
cd /
for SCRIPTS in scripts/*; do
[ -e "$SCRIPTS" ] || continue
echo "$SCRIPTS: executing"
chown $(id -u):$(id -g) $SCRIPTS
chmod a+x $SCRIPTS
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' $SCRIPTS || true
./$SCRIPTS || echo "$SCRIPTS: exiting $?"
done