diff --git a/bin/entrypoint-traefix.sh b/bin/entrypoint-traefix.sh index 7d26dac..f69dabd 100755 --- a/bin/entrypoint-traefix.sh +++ b/bin/entrypoint-traefix.sh @@ -9,27 +9,25 @@ # @@Copyright : Copyright: (c) 2022 Jason Hempstead, Casjays Developments # @@Created : Thursday, Sep 08, 2022 10:06 EDT # @@File : entrypoint-traefik.sh -# @@Description : +# @@Description : # @@Changelog : New script # @@TODO : Better documentation -# @@Other : -# @@Resource : +# @@Other : +# @@Resource : # @@Terminal App : no # @@sudo/root : no # @@Template : other/docker-entrypoint # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Set bash options +[ -n "$DEBUG" ] && set -x +set -o pipefail +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - APPNAME="$(basename "$0" 2>/dev/null)" VERSION="202209081006-git" HOME="${USER_HOME:-$HOME}" USER="${SUDO_USER:-$USER}" RUN_USER="${SUDO_USER:-$USER}" SCRIPT_SRC_DIR="${BASH_SOURCE%/*}" -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Set bash options -[ "$1" == "--debug" ] && set -xo pipefail && export SCRIPT_OPTS="--debug" && export _DEBUG="on" -[ "$1" == "--raw" ] && export SHOW_RAW="true" -set -o pipefail - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Set functions __version() { echo -e ${GREEN:-}"$VERSION"${NC:-}; } @@ -94,7 +92,7 @@ fi [ -f "/etc/.env.sh" ] && rm -Rf "/etc/.env.sh" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Additional commands -[ -d "/config/traefik" ] || mkdir -p "/config/traefik" +[ -d "/config/traefik" ] || mkdir -p "/config/traefik" [ -f "/config/traefik/.yml" ] || cp -Rf "/etc/traefik/traefik.yml" "/config/traefik" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - case "$1" in