mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-29 07:57:40 +01:00
Dev version
This commit is contained in:
16
enedisgateway2mqtt_dev/rootfs/entrypoint.sh
Normal file
16
enedisgateway2mqtt_dev/rootfs/entrypoint.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Starting..."
|
||||
|
||||
####################
|
||||
# Starting scripts #
|
||||
####################
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user