From e235d6964713063b3f4e63c71b738806ed87fcde Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 10 Jul 2022 12:19:06 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20=20modified:=20bin/entr?= =?UTF-8?q?ypoint-deno.sh=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/entrypoint-deno.sh | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/bin/entrypoint-deno.sh b/bin/entrypoint-deno.sh index 031ca8e..f9ca4b6 100755 --- a/bin/entrypoint-deno.sh +++ b/bin/entrypoint-deno.sh @@ -8,10 +8,10 @@ # @Copyright : Copyright: (c) 2022 Jason Hempstead, Casjays Developments # @Created : Sunday, Jul 10, 2022 10:05 EDT # @File : entrypoint-deno.sh -# @Description : -# @TODO : -# @Other : -# @Resource : +# @Description : +# @TODO : +# @Other : +# @Resource : # @sudo/root : no # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - APPNAME="$(basename "$0" 2>/dev/null)" @@ -47,15 +47,7 @@ if [[ -n "${HOSTNAME}" ]]; then echo "127.0.0.1 $HOSTNAME localhost" >/etc/hosts fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -if [[ -n "$CONFIG_DIR" ]] && [[ -d "$CONFIG_DIR" ]]; then - for config in $CONFIG_DIR; do - if [[ -d "/config/$config" ]]; then - cp -Rf "/config/$config/." "/etc/$config/" - elif [[ -f "/config/$config" ]]; then - cp -Rf "/config/$config" "/etc/$config" - fi - done -fi +[[ -f "/app/.env" ]] && source /app/.env # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - case "$1" in --help) @@ -70,7 +62,7 @@ bash | shell | sh) __exec_bash "$@" ;; *) - __exec_bash "$@" + exec deno run --allow-net "${@:-https://deno.land/std/examples/welcome.ts}" ;; esac # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -