From 1e8f9ee71086d7ab75efb4f024c990c885c7eaf1 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 11 Oct 2022 16:08:24 -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-nextcloud.sh | 10 ++++------ bin/healthcheck | 5 +++-- bin/occ | 4 +++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/bin/entrypoint-nextcloud.sh b/bin/entrypoint-nextcloud.sh index 1d70532..e6e954b 100755 --- a/bin/entrypoint-nextcloud.sh +++ b/bin/entrypoint-nextcloud.sh @@ -18,18 +18,16 @@ # @@sudo/root : no # @@Template : other/docker-entrypoint # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Set bash options +[ -n "$DEBUG" ] && set -x +set -o pipefail +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - APPNAME="$(basename "$0" 2>/dev/null)" VERSION="202210042049-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:-}; } diff --git a/bin/healthcheck b/bin/healthcheck index 2827038..6bc4c17 100755 --- a/bin/healthcheck +++ b/bin/healthcheck @@ -1,6 +1,7 @@ #!/bin/sh -set -e - +# Set bash options +[ -n "$DEBUG" ] && set -x +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if [ "$SIDECAR_NEWSUPDATER" = "1" ]; then pgrep -f "/usr/bin/nextcloud-news-updater -c /etc/news_updater.ini" elif [ "$SIDECAR_CRON" = "1" ] || [ "$SIDECAR_PREVIEWGEN" = "1" ]; then diff --git a/bin/occ b/bin/occ index 4f494df..4193abe 100755 --- a/bin/occ +++ b/bin/occ @@ -1,3 +1,5 @@ #!/bin/sh - +# Set bash options +[ -n "$DEBUG" ] && set -x +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - yasu nextcloud:nextcloud php -f /var/www/occ "$@"