diff --git a/cloudcommander/rootfs/entrypoint.sh b/cloudcommander/rootfs/entrypoint.sh index 5738292ed..635dbc865 100644 --- a/cloudcommander/rootfs/entrypoint.sh +++ b/cloudcommander/rootfs/entrypoint.sh @@ -34,7 +34,7 @@ fi # Starting scripts # #################### -for SCRIPTS in /scripts/*; do +for SCRIPTS in scripts/*; do [ -e "$SCRIPTS" ] || continue echo "$SCRIPTS: executing" chown $(id -u):$(id -g) $SCRIPTS diff --git a/enedisgateway2mqtt/rootfs/entrypoint.sh b/enedisgateway2mqtt/rootfs/entrypoint.sh index b094f8dbd..60e2e11aa 100644 --- a/enedisgateway2mqtt/rootfs/entrypoint.sh +++ b/enedisgateway2mqtt/rootfs/entrypoint.sh @@ -6,7 +6,7 @@ echo "Starting..." # Starting scripts # #################### -for SCRIPTS in /scripts/*; do +for SCRIPTS in scripts/*; do [ -e "$SCRIPTS" ] || continue echo "$SCRIPTS: executing" chown $(id -u):$(id -g) $SCRIPTS diff --git a/enedisgateway2mqtt_dev/rootfs/entrypoint.sh b/enedisgateway2mqtt_dev/rootfs/entrypoint.sh index b094f8dbd..60e2e11aa 100644 --- a/enedisgateway2mqtt_dev/rootfs/entrypoint.sh +++ b/enedisgateway2mqtt_dev/rootfs/entrypoint.sh @@ -6,7 +6,7 @@ echo "Starting..." # Starting scripts # #################### -for SCRIPTS in /scripts/*; do +for SCRIPTS in scripts/*; do [ -e "$SCRIPTS" ] || continue echo "$SCRIPTS: executing" chown $(id -u):$(id -g) $SCRIPTS diff --git a/filebrowser/rootfs/entrypoint.sh b/filebrowser/rootfs/entrypoint.sh index 5738292ed..635dbc865 100644 --- a/filebrowser/rootfs/entrypoint.sh +++ b/filebrowser/rootfs/entrypoint.sh @@ -34,7 +34,7 @@ fi # Starting scripts # #################### -for SCRIPTS in /scripts/*; do +for SCRIPTS in scripts/*; do [ -e "$SCRIPTS" ] || continue echo "$SCRIPTS: executing" chown $(id -u):$(id -g) $SCRIPTS diff --git a/gazpar2mqtt/rootfs/entrypoint.sh b/gazpar2mqtt/rootfs/entrypoint.sh index 5738292ed..635dbc865 100644 --- a/gazpar2mqtt/rootfs/entrypoint.sh +++ b/gazpar2mqtt/rootfs/entrypoint.sh @@ -34,7 +34,7 @@ fi # Starting scripts # #################### -for SCRIPTS in /scripts/*; do +for SCRIPTS in scripts/*; do [ -e "$SCRIPTS" ] || continue echo "$SCRIPTS: executing" chown $(id -u):$(id -g) $SCRIPTS diff --git a/webtrees/Dockerfile b/webtrees/Dockerfile index 629afa6e0..7a11a6571 100644 --- a/webtrees/Dockerfile +++ b/webtrees/Dockerfile @@ -29,7 +29,7 @@ RUN \ && rm -rf /tmp/bashio || true # Copy root filesystem -COPY rootfs / +COPY rootfs/ / RUN \ ################ diff --git a/webtrees/rootfs/entrypoint.sh b/webtrees/rootfs/entrypoint.sh index 5738292ed..635dbc865 100644 --- a/webtrees/rootfs/entrypoint.sh +++ b/webtrees/rootfs/entrypoint.sh @@ -34,7 +34,7 @@ fi # Starting scripts # #################### -for SCRIPTS in /scripts/*; do +for SCRIPTS in scripts/*; do [ -e "$SCRIPTS" ] || continue echo "$SCRIPTS: executing" chown $(id -u):$(id -g) $SCRIPTS