allow want word splitting for packages and extensions
All checks were successful
ci/woodpecker/push/build_dev Pipeline was successful

This commit is contained in:
Ruben Momoa
2024-08-23 10:00:32 +02:00
parent 3510e1a279
commit 0a9a900ee7

View File

@@ -6,10 +6,12 @@ set -e
# install extra packages and extensions on first boot # install extra packages and extensions on first boot
if [[ ! -f /etc/first_boot ]]; then if [[ ! -f /etc/first_boot ]]; then
if [[ -n "${EXTRA_APK_PACKAGES// /}" ]]; then if [[ -n "${EXTRA_APK_PACKAGES// /}" ]]; then
apk add --no-cache "$EXTRA_APK_PACKAGES" # shellcheck disable=SC2086
apk add --no-cache $EXTRA_APK_PACKAGES
fi fi
if [[ -n "${EXTRA_PHP_EXTENSIONS// /}" ]]; then if [[ -n "${EXTRA_PHP_EXTENSIONS// /}" ]]; then
docker-php-ext-install "$EXTRA_PHP_EXTENSIONS" # shellcheck disable=SC2086
docker-php-ext-install $EXTRA_PHP_EXTENSIONS
fi fi
touch /etc/first_boot touch /etc/first_boot
fi fi