From 5e8f8593c8d5d16fb6965a6ef1745914d7d0630a Mon Sep 17 00:00:00 2001 From: GitHub Workflow Date: Thu, 26 Mar 2026 22:42:53 +0000 Subject: [PATCH] Runs update.sh --- 32/apache/entrypoint.sh | 8 +++----- 32/fpm-alpine/entrypoint.sh | 8 +++----- 32/fpm/entrypoint.sh | 8 +++----- 33/apache/entrypoint.sh | 8 +++----- 33/fpm-alpine/entrypoint.sh | 8 +++----- 33/fpm/entrypoint.sh | 8 +++----- 6 files changed, 18 insertions(+), 30 deletions(-) diff --git a/32/apache/entrypoint.sh b/32/apache/entrypoint.sh index 303aa005..c76b51ee 100755 --- a/32/apache/entrypoint.sh +++ b/32/apache/entrypoint.sh @@ -22,7 +22,6 @@ run_as() { # Execute all executable files in a given directory in alphanumeric order run_path() { local hook_folder_path="/docker-entrypoint-hooks.d/$1" - local return_code=0 local found=0 echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\"" @@ -42,12 +41,11 @@ run_path() { echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\"" found=$((found+1)) - run_as "${script_file_path}" || return_code="$?" - - if [ "${return_code}" -ne "0" ]; then + run_as "${script_file_path}" || { + return_code="$?" echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}" exit 1 - fi + } echo "==> Finished executing the script: \"${script_file_path}\"" done diff --git a/32/fpm-alpine/entrypoint.sh b/32/fpm-alpine/entrypoint.sh index 303aa005..c76b51ee 100755 --- a/32/fpm-alpine/entrypoint.sh +++ b/32/fpm-alpine/entrypoint.sh @@ -22,7 +22,6 @@ run_as() { # Execute all executable files in a given directory in alphanumeric order run_path() { local hook_folder_path="/docker-entrypoint-hooks.d/$1" - local return_code=0 local found=0 echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\"" @@ -42,12 +41,11 @@ run_path() { echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\"" found=$((found+1)) - run_as "${script_file_path}" || return_code="$?" - - if [ "${return_code}" -ne "0" ]; then + run_as "${script_file_path}" || { + return_code="$?" echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}" exit 1 - fi + } echo "==> Finished executing the script: \"${script_file_path}\"" done diff --git a/32/fpm/entrypoint.sh b/32/fpm/entrypoint.sh index 303aa005..c76b51ee 100755 --- a/32/fpm/entrypoint.sh +++ b/32/fpm/entrypoint.sh @@ -22,7 +22,6 @@ run_as() { # Execute all executable files in a given directory in alphanumeric order run_path() { local hook_folder_path="/docker-entrypoint-hooks.d/$1" - local return_code=0 local found=0 echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\"" @@ -42,12 +41,11 @@ run_path() { echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\"" found=$((found+1)) - run_as "${script_file_path}" || return_code="$?" - - if [ "${return_code}" -ne "0" ]; then + run_as "${script_file_path}" || { + return_code="$?" echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}" exit 1 - fi + } echo "==> Finished executing the script: \"${script_file_path}\"" done diff --git a/33/apache/entrypoint.sh b/33/apache/entrypoint.sh index 303aa005..c76b51ee 100755 --- a/33/apache/entrypoint.sh +++ b/33/apache/entrypoint.sh @@ -22,7 +22,6 @@ run_as() { # Execute all executable files in a given directory in alphanumeric order run_path() { local hook_folder_path="/docker-entrypoint-hooks.d/$1" - local return_code=0 local found=0 echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\"" @@ -42,12 +41,11 @@ run_path() { echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\"" found=$((found+1)) - run_as "${script_file_path}" || return_code="$?" - - if [ "${return_code}" -ne "0" ]; then + run_as "${script_file_path}" || { + return_code="$?" echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}" exit 1 - fi + } echo "==> Finished executing the script: \"${script_file_path}\"" done diff --git a/33/fpm-alpine/entrypoint.sh b/33/fpm-alpine/entrypoint.sh index 303aa005..c76b51ee 100755 --- a/33/fpm-alpine/entrypoint.sh +++ b/33/fpm-alpine/entrypoint.sh @@ -22,7 +22,6 @@ run_as() { # Execute all executable files in a given directory in alphanumeric order run_path() { local hook_folder_path="/docker-entrypoint-hooks.d/$1" - local return_code=0 local found=0 echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\"" @@ -42,12 +41,11 @@ run_path() { echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\"" found=$((found+1)) - run_as "${script_file_path}" || return_code="$?" - - if [ "${return_code}" -ne "0" ]; then + run_as "${script_file_path}" || { + return_code="$?" echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}" exit 1 - fi + } echo "==> Finished executing the script: \"${script_file_path}\"" done diff --git a/33/fpm/entrypoint.sh b/33/fpm/entrypoint.sh index 303aa005..c76b51ee 100755 --- a/33/fpm/entrypoint.sh +++ b/33/fpm/entrypoint.sh @@ -22,7 +22,6 @@ run_as() { # Execute all executable files in a given directory in alphanumeric order run_path() { local hook_folder_path="/docker-entrypoint-hooks.d/$1" - local return_code=0 local found=0 echo "=> Searching for hook scripts (*.sh) to run, located in the folder \"${hook_folder_path}\"" @@ -42,12 +41,11 @@ run_path() { echo "==> Running the script (cwd: $(pwd)): \"${script_file_path}\"" found=$((found+1)) - run_as "${script_file_path}" || return_code="$?" - - if [ "${return_code}" -ne "0" ]; then + run_as "${script_file_path}" || { + return_code="$?" echo "==> Failed at executing script \"${script_file_path}\". Exit code: ${return_code}" exit 1 - fi + } echo "==> Finished executing the script: \"${script_file_path}\"" done