From 7f7aace79ab3fd7694e0f7397b417f102c97c6b2 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 11 Oct 2022 16:08:35 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=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-proftpd.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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}"