mirror of
https://github.com/casjaysdevdocker/php
synced 2024-11-22 23:23:06 -05:00
🗃️ Committing everything that changed 🗃️
.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:
parent
053270c386
commit
2becf486f2
@ -1,4 +1,4 @@
|
||||
name: release-tag
|
||||
name: php-7
|
||||
|
||||
on: push
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: release-tag
|
||||
name: php-8
|
||||
|
||||
on: push
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: release-tag
|
||||
name: php-latestr
|
||||
|
||||
on: push
|
||||
|
||||
|
@ -24,11 +24,19 @@ set -o pipefail
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Set env variables
|
||||
exitCode=0
|
||||
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
|
||||
php_ini=$(find /etc/php* -name 'php.ini' | grep -v '/etc/php$' | head -n1 | grep '^' || false)
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user