🗃️ Committing everything that changed 🗃️
Some checks failed
php-7 / release-image (push) Failing after 2m57s
php-latestr / release-image (push) Successful in 1h10m3s
php-8 / release-image (push) Successful in 1h12m33s

.gitea/workflows/docker.7.yaml
.gitea/workflows/docker.8.yaml
.gitea/workflows/docker.yaml
rootfs/root/docker/setup/06-post.sh
tmp/etc/php.ini
tmp/etc/php/php.ini
This commit is contained in:
casjay 2024-11-19 13:42:42 -05:00
parent 053270c386
commit 2becf486f2
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145
5 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,4 @@
name: release-tag name: php-7
on: push on: push

View File

@ -1,4 +1,4 @@
name: release-tag name: php-8
on: push on: push

View File

@ -1,4 +1,4 @@
name: release-tag name: php-latestr
on: push on: push

View File

@ -24,11 +24,19 @@ set -o pipefail
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Set env variables # Set env variables
exitCode=0 exitCode=0
if [ -d "/etc/php/php-fpm" ]; then rm -Rf "/etc/php/php-fpm"; fi php_ini=$(find /etc/php* -name 'php.ini' | grep -v '/etc/php$' | head -n1 | grep '^' || false)
if [ -d "/etc/php/php-fpm.d" ]; then rm -Rf "/etc/php/php-fpm.d"; fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Predifined actions # Predifined actions
if [ -d "/etc/php/php-fpm" ]; then rm -Rf "/etc/php/php-fpm"; fi
if [ -d "/etc/php/php-fpm.d" ]; then rm -Rf "/etc/php/php-fpm.d"; fi
if [ -n "$php_ini" ]; then
php_dir="$(dirname "$php_ini")"
if [ $php_dir != "/etc/php" ]; then
[ -L "/etc/php" ] || unlink /etc/php
ln -sf "$php_dir" /etc/php
[ -f "/etc/php.ini" ] && mv -f "/etc/php.ini" "/etc/php/php.ini"
fi
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Main script # Main script