diff --git a/bin/entrypoint-proftpd.sh b/bin/entrypoint-proftpd.sh index 6c184aa..5318d8b 100644 --- a/bin/entrypoint-proftpd.sh +++ b/bin/entrypoint-proftpd.sh @@ -13,16 +13,15 @@ # @Other : # @Resource : # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Set bash options +[ -n "$DEBUG" ] && set -x +set -o pipefail +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - APPNAME="$(basename "$0")" VERSION="202202021753-git" USER="${SUDO_USER:-${USER}}" HOME="${USER_HOME:-${HOME}}" SRC_DIR="${BASH_SOURCE%/*}" -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Set bash options -if [[ "$1" == "--debug" ]]; then shift 1 && set -xo pipefail && export SCRIPT_OPTS="--debug" && export _DEBUG="on"; fi -trap 'exitCode=${exitCode:-$?};[ -n "$ENTRYPOINT_SH_TEMP_FILE" ] && [ -f "$ENTRYPOINT_SH_TEMP_FILE" ] && rm -Rf "$ENTRYPOINT_SH_TEMP_FILE" &>/dev/null' EXIT - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - export TZ="${TZ:-America/New_York}" export HOSTNAME="${HOSTNAME:-casjaysdev-proftpd}"