🗃️ Committing everything that changed 🗃️
Some checks failed
release-tag / release-image (push) Failing after 3m43s

rootfs/root/docker/setup/00-init.sh
rootfs/root/docker/setup/06-post.sh
rootfs/root/docker/setup/07-cleanup.sh
rootfs/usr/local/etc/docker/init.d/01-php.sh
rootfs/usr/local/etc/docker/init.d/05-php-fpm.sh
This commit is contained in:
casjay 2024-09-09 18:23:36 -04:00
parent f379f851c8
commit 35efcda1c5
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145
5 changed files with 19 additions and 6 deletions

View File

@ -27,7 +27,9 @@ exitCode=0
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Main script
[ -d "/etc/php" ] && rm -Rf "/etc/php"
[ -d "/etc/php-fpm" ] && rm -Rf "/etc/php-fpm"
[ -d "/etc/php-fpm.d" ] && rm -Rf "/etc/php-fpm.d"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set the exit code
exitCode=$?

View File

@ -24,10 +24,21 @@ set -o pipefail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set env variables
exitCode=0
ETC_DIR="/usr/local/etc"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Main script
mkdir -p "$ETC_DIR/php"
mkdir -p "$ETC_DIR/php-fpm"
mkdir -p "$ETC_DIR/php-fpm/php-fpm.d"
[ -d "$ETC_DIR/php-fpm.d" ] && cp -Rf "$ETC_DIR/php-fpm.d" "$ETC_DIR/php-fpm/php-fpm.d"
[ -d "/etc/php" ] && cp -Rf "/etc/php/" "$ETC_DIR/php/"
[ -d "/etc/php-fpm" ] && cp -Rf "/etc/php-fpm/" "$ETC_DIR/php-fpm/"
[ -d "/etc/php-fpm.d" ] && cp -Rf "/etc/php-fpm.d/" "$ETC_DIR/php-fpm/php-fpm.d"
for d in "$ETC_DIR/php-fpm.d" "/etc/php" "/etc/php-fpm"; do
[ -d "$d" ] && rm -Rf "$d"
done
ln -sf "$$ETC_DIR/etc/php" "/etc/php"
ln -sf "$$ETC_DIR/etc/php-fpm" "/etc/php-fpm"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set the exit code
exitCode=$?

View File

@ -27,7 +27,7 @@ exitCode=0
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Main script
[ -f " /usr/local/bin/docker-php-entrypoint" ] && rm -Rf usr/local/bin/docker-php-entrypoint
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set the exit code
exitCode=$?

View File

@ -80,7 +80,7 @@ DATA_DIR="/data/php" # set data directory
CONF_DIR="/config/php" # set config directory
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# set the containers etc directory
ETC_DIR="/etc/php"
ETC_DIR="/usr/local/etc/php"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# set the var dir
VAR_DIR=""

View File

@ -80,7 +80,7 @@ DATA_DIR="/data/php-fpm" # set data directory
CONF_DIR="/config/php-fpm" # set config directory
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# set the containers etc directory
ETC_DIR="/etc/php-fpm"
ETC_DIR="/usr/local/etc/php-fpm"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# set the var dir
VAR_DIR=""