From 5a002f940d4852572c7f0d7c54f3e73f7205d272 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sat, 18 Dec 2021 17:55:08 +0100 Subject: [PATCH] keep original location --- addons_updater/rootfs/entrypoint.sh | 5 ++--- arpspoof/rootfs/entrypoint.sh | 5 ++--- cloudcommander/rootfs/entrypoint.sh | 5 ++--- enedisgateway2mqtt/rootfs/entrypoint.sh | 5 ++--- enedisgateway2mqtt_dev/rootfs/entrypoint.sh | 5 ++--- filebrowser/rootfs/entrypoint.sh | 5 ++--- gazpar2mqtt/rootfs/entrypoint.sh | 5 ++--- inadyn/rootfs/entrypoint.sh | 5 ++--- joal/rootfs/entrypoint.sh | 5 ++--- photoprism/rootfs/entrypoint.sh | 5 ++--- webtrees/rootfs/entrypoint.sh | 5 ++--- 11 files changed, 22 insertions(+), 33 deletions(-) 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