mirror of
https://github.com/casjaysdevdocker/php
synced 2024-11-21 11:23:09 -05:00
🗃️ Committing everything that changed 🗃️
All checks were successful
release-tag / release-image (push) Successful in 47m28s
All checks were successful
release-tag / release-image (push) Successful in 47m28s
rootfs/root/docker/setup/05-custom.sh
This commit is contained in:
parent
83b78ec6ca
commit
053270c386
@ -38,20 +38,24 @@ if [ -n "$EXT_INSTALLED" ]; then
|
|||||||
chmod +x "$BIN_DIR/install-php-extensions"
|
chmod +x "$BIN_DIR/install-php-extensions"
|
||||||
for ext in $EXT_LIST $EXT_ADDITIONAL; do
|
for ext in $EXT_LIST $EXT_ADDITIONAL; do
|
||||||
if ! echo "$ext" | grep -q "$EXT_INSTALLED"; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "Failed to install $BIN_DIR/install-php-extensions"
|
echo "Failed to install $BIN_DIR/install-php-extensions" >&2
|
||||||
exit 1
|
exitCode=1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Can not get php modules: is php installed?"
|
echo "Can not get php modules: is php installed?"
|
||||||
exit 2
|
exitCode=2
|
||||||
fi
|
fi
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Main script
|
# Main script
|
||||||
|
php -m
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Set the exit code
|
# Set the exit code
|
||||||
#exitCode=$?
|
#exitCode=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user