From c78657e9986598bec104edd67011bb3698bfa02d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 3 Aug 2023 16:02:08 +0200 Subject: [PATCH] Create entrypoint.sh --- webtop_kde/rootfs/entrypoint.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 webtop_kde/rootfs/entrypoint.sh diff --git a/webtop_kde/rootfs/entrypoint.sh b/webtop_kde/rootfs/entrypoint.sh new file mode 100644 index 000000000..68c3fec4d --- /dev/null +++ b/webtop_kde/rootfs/entrypoint.sh @@ -0,0 +1,16 @@ +#!/bin/bash +echo "Starting..." + +#################### +# Starting scripts # +#################### + +for SCRIPTS in /etc/cont-init.d/*; do + [ -e "$SCRIPTS" ] || continue + echo "$SCRIPTS: executing" + chown "$(id -u)":"$(id -g)" "$SCRIPTS" + chmod a+x "$SCRIPTS" + # Change shebang if no s6 supervision + sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' "$SCRIPTS" + /."$SCRIPTS" || echo "$SCRIPTS: exiting $?" +done