diff --git a/addons_updater/rootfs/entrypoint.sh b/addons_updater/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/addons_updater/rootfs/entrypoint.sh +++ b/addons_updater/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done diff --git a/arpspoof/rootfs/entrypoint.sh b/arpspoof/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/arpspoof/rootfs/entrypoint.sh +++ b/arpspoof/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done diff --git a/cloudcommander/rootfs/entrypoint.sh b/cloudcommander/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/cloudcommander/rootfs/entrypoint.sh +++ b/cloudcommander/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done diff --git a/enedisgateway2mqtt/rootfs/entrypoint.sh b/enedisgateway2mqtt/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/enedisgateway2mqtt/rootfs/entrypoint.sh +++ b/enedisgateway2mqtt/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done diff --git a/enedisgateway2mqtt_dev/rootfs/entrypoint.sh b/enedisgateway2mqtt_dev/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/enedisgateway2mqtt_dev/rootfs/entrypoint.sh +++ b/enedisgateway2mqtt_dev/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done diff --git a/filebrowser/rootfs/entrypoint.sh b/filebrowser/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/filebrowser/rootfs/entrypoint.sh +++ b/filebrowser/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done diff --git a/gazpar2mqtt/rootfs/entrypoint.sh b/gazpar2mqtt/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/gazpar2mqtt/rootfs/entrypoint.sh +++ b/gazpar2mqtt/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done diff --git a/inadyn/rootfs/entrypoint.sh b/inadyn/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/inadyn/rootfs/entrypoint.sh +++ b/inadyn/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done diff --git a/joal/rootfs/entrypoint.sh b/joal/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/joal/rootfs/entrypoint.sh +++ b/joal/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done diff --git a/photoprism/rootfs/entrypoint.sh b/photoprism/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/photoprism/rootfs/entrypoint.sh +++ b/photoprism/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done diff --git a/webtrees/rootfs/entrypoint.sh b/webtrees/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/webtrees/rootfs/entrypoint.sh +++ b/webtrees/rootfs/entrypoint.sh @@ -6,12 +6,11 @@ echo "Starting..." # Starting scripts # #################### -cd / -for SCRIPTS in scripts/*; do +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 $?" + /./$SCRIPTS || echo "$SCRIPTS: exiting $?" done