From 6407e1befb107d065ba1e6c73c07145220aaa787 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Fri, 19 Jan 2024 18:51:42 +0200 Subject: [PATCH] Updated all the images with the permissional fix. --- 4.3/php8.1/apache/docker-entrypoint.sh | 4 ++++ 4.3/php8.1/fpm-alpine/docker-entrypoint.sh | 4 ++++ 4.3/php8.1/fpm/docker-entrypoint.sh | 4 ++++ 4.3/php8.2/apache/docker-entrypoint.sh | 4 ++++ 4.3/php8.2/fpm-alpine/docker-entrypoint.sh | 4 ++++ 4.3/php8.2/fpm/docker-entrypoint.sh | 4 ++++ 4.4/php8.1/apache/docker-entrypoint.sh | 4 ++++ 4.4/php8.1/fpm-alpine/docker-entrypoint.sh | 4 ++++ 4.4/php8.1/fpm/docker-entrypoint.sh | 4 ++++ 4.4/php8.2/apache/docker-entrypoint.sh | 4 ++++ 4.4/php8.2/fpm-alpine/docker-entrypoint.sh | 4 ++++ 4.4/php8.2/fpm/docker-entrypoint.sh | 4 ++++ 5.0/php8.1/apache/docker-entrypoint.sh | 4 ++++ 5.0/php8.1/fpm-alpine/docker-entrypoint.sh | 4 ++++ 5.0/php8.1/fpm/docker-entrypoint.sh | 4 ++++ 5.0/php8.2/apache/docker-entrypoint.sh | 4 ++++ 5.0/php8.2/fpm-alpine/docker-entrypoint.sh | 4 ++++ 5.0/php8.2/fpm/docker-entrypoint.sh | 4 ++++ 18 files changed, 72 insertions(+) diff --git a/4.3/php8.1/apache/docker-entrypoint.sh b/4.3/php8.1/apache/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.3/php8.1/apache/docker-entrypoint.sh +++ b/4.3/php8.1/apache/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.3/php8.1/fpm-alpine/docker-entrypoint.sh b/4.3/php8.1/fpm-alpine/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.3/php8.1/fpm-alpine/docker-entrypoint.sh +++ b/4.3/php8.1/fpm-alpine/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.3/php8.1/fpm/docker-entrypoint.sh b/4.3/php8.1/fpm/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.3/php8.1/fpm/docker-entrypoint.sh +++ b/4.3/php8.1/fpm/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.3/php8.2/apache/docker-entrypoint.sh b/4.3/php8.2/apache/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.3/php8.2/apache/docker-entrypoint.sh +++ b/4.3/php8.2/apache/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.3/php8.2/fpm-alpine/docker-entrypoint.sh b/4.3/php8.2/fpm-alpine/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.3/php8.2/fpm-alpine/docker-entrypoint.sh +++ b/4.3/php8.2/fpm-alpine/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.3/php8.2/fpm/docker-entrypoint.sh b/4.3/php8.2/fpm/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.3/php8.2/fpm/docker-entrypoint.sh +++ b/4.3/php8.2/fpm/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.4/php8.1/apache/docker-entrypoint.sh b/4.4/php8.1/apache/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.4/php8.1/apache/docker-entrypoint.sh +++ b/4.4/php8.1/apache/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.4/php8.1/fpm-alpine/docker-entrypoint.sh b/4.4/php8.1/fpm-alpine/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.4/php8.1/fpm-alpine/docker-entrypoint.sh +++ b/4.4/php8.1/fpm-alpine/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.4/php8.1/fpm/docker-entrypoint.sh b/4.4/php8.1/fpm/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.4/php8.1/fpm/docker-entrypoint.sh +++ b/4.4/php8.1/fpm/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.4/php8.2/apache/docker-entrypoint.sh b/4.4/php8.2/apache/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.4/php8.2/apache/docker-entrypoint.sh +++ b/4.4/php8.2/apache/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.4/php8.2/fpm-alpine/docker-entrypoint.sh b/4.4/php8.2/fpm-alpine/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.4/php8.2/fpm-alpine/docker-entrypoint.sh +++ b/4.4/php8.2/fpm-alpine/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/4.4/php8.2/fpm/docker-entrypoint.sh b/4.4/php8.2/fpm/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/4.4/php8.2/fpm/docker-entrypoint.sh +++ b/4.4/php8.2/fpm/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/5.0/php8.1/apache/docker-entrypoint.sh b/5.0/php8.1/apache/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/5.0/php8.1/apache/docker-entrypoint.sh +++ b/5.0/php8.1/apache/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/5.0/php8.1/fpm-alpine/docker-entrypoint.sh b/5.0/php8.1/fpm-alpine/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/5.0/php8.1/fpm-alpine/docker-entrypoint.sh +++ b/5.0/php8.1/fpm-alpine/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/5.0/php8.1/fpm/docker-entrypoint.sh b/5.0/php8.1/fpm/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/5.0/php8.1/fpm/docker-entrypoint.sh +++ b/5.0/php8.1/fpm/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/5.0/php8.2/apache/docker-entrypoint.sh b/5.0/php8.2/apache/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/5.0/php8.2/apache/docker-entrypoint.sh +++ b/5.0/php8.2/apache/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/5.0/php8.2/fpm-alpine/docker-entrypoint.sh b/5.0/php8.2/fpm-alpine/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/5.0/php8.2/fpm-alpine/docker-entrypoint.sh +++ b/5.0/php8.2/fpm-alpine/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation diff --git a/5.0/php8.2/fpm/docker-entrypoint.sh b/5.0/php8.2/fpm/docker-entrypoint.sh index 5f8a8ef..198d9d2 100755 --- a/5.0/php8.2/fpm/docker-entrypoint.sh +++ b/5.0/php8.2/fpm/docker-entrypoint.sh @@ -202,6 +202,10 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then # Check the exit status of the PHP command if [ $? -eq 0 ]; then + # Set configuration to correct owner + chown "$user:$group" configuration.php + # Set configuration to correct permissions + chmod 444 configuration.php # The PHP command succeeded (so we remove the installation folder) rm -rf installation