From 053270c386876d29676813b18ac5763f9bbd867c Mon Sep 17 00:00:00 2001 From: casjay Date: Fri, 11 Oct 2024 13:52:39 -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 rootfs/root/docker/setup/05-custom.sh --- rootfs/root/docker/setup/05-custom.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/rootfs/root/docker/setup/05-custom.sh b/rootfs/root/docker/setup/05-custom.sh index 6389177..0761289 100755 --- a/rootfs/root/docker/setup/05-custom.sh +++ b/rootfs/root/docker/setup/05-custom.sh @@ -38,20 +38,24 @@ if [ -n "$EXT_INSTALLED" ]; then chmod +x "$BIN_DIR/install-php-extensions" for ext in $EXT_LIST $EXT_ADDITIONAL; do if ! echo "$ext" | grep -q "$EXT_INSTALLED"; then - apk add --no-cache php-$ext || install-php-extensions $ext + if apk add --no-cache php-$ext || install-php-extensions $ext; then + echo "Installed $ext" + else + echo "Failed to install $ext" >&2 + fi fi done else - echo "Failed to install $BIN_DIR/install-php-extensions" - exit 1 + echo "Failed to install $BIN_DIR/install-php-extensions" >&2 + exitCode=1 fi else echo "Can not get php modules: is php installed?" - exit 2 + exitCode=2 fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Main script - +php -m # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Set the exit code #exitCode=$?