mirror of
https://github.com/casjaysdevdocker/php
synced 2025-09-17 21:57:47 -04:00
🗃️ Committing everything that changed 🗃️
Dockerfile Dockerfile.7 Dockerfile.8 rootfs/root/docker/setup/02-packages.sh rootfs/root/docker/setup/03-files.sh rootfs/root/docker/setup/05-custom.sh rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
@@ -24,9 +24,10 @@ set -o pipefail
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Set env variables
|
||||
exitCode=0
|
||||
|
||||
[ ! -f "/usr/local/etc/php-fpm.conf.default" ] || rm -Rf "/usr/local/etc/php-fpm.conf.default"
|
||||
[ ! -f "/usr/local/etc/php-fpm.d/www.conf.default" ] || rm -Rf "/usr/local/etc/php-fpm.d/www.conf.default"
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Predifined actions
|
||||
# Predefined actions
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Main script
|
||||
|
@@ -56,7 +56,7 @@ if [ -d "/tmp/etc" ]; then
|
||||
echo "Installing $config to /etc/$name"
|
||||
if [ -d "$config" ]; then
|
||||
mkdir -p "/etc/$name"
|
||||
copy "$config/." "/etc/$name/"
|
||||
copy "$config/." "/usr/local/etc/$name/"
|
||||
mkdir -p "/usr/local/share/template-files/config/$name"
|
||||
copy "$config/." "/usr/local/share/template-files/config/$name/"
|
||||
else
|
||||
|
@@ -38,7 +38,7 @@ 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
|
||||
install-php-extensions $ext
|
||||
apk add --no-cache php-$ext || install-php-extensions $ext
|
||||
fi
|
||||
done
|
||||
else
|
||||
|
Reference in New Issue
Block a user