From 07a7315860b80478c3cb128be5cc8a916b142bd6 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 18 Dec 2021 13:47:10 +0100 Subject: [PATCH] Update entrypoint.sh --- joplin/rootfs/entrypoint.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/joplin/rootfs/entrypoint.sh b/joplin/rootfs/entrypoint.sh index 35ccb7382..a948f3bbb 100644 --- a/joplin/rootfs/entrypoint.sh +++ b/joplin/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