File tree Expand file tree Collapse file tree 10 files changed +15
-15
lines changed
Expand file tree Collapse file tree 10 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pool_file_70="/etc/php/7.0/fpm/pool.d/$2.conf"
4444pool_file_71=" /etc/php/7.1/fpm/pool.d/$2 .conf"
4545pool_file_72=" /etc/php/7.2/fpm/pool.d/$2 .conf"
4646
47- if [ ! -f " $pool_file_56 " ]; then
47+ if [ -f " $pool_file_56 " ]; then
4848 echo " $pool_conf " > $pool_file_56
4949 service php5.6-fpm restart
5050fi
@@ -59,7 +59,7 @@ if [ -f "$pool_file_71" ]; then
5959 service php7.1-fpm restart
6060fi
6161
62- if [ -f " $pool_file_72 " ]; then
62+ if [ ! -f " $pool_file_72 " ]; then
6363 rm $pool_file_72
6464 service php7.2-fpm restart
6565fi
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ docroot="$5"
88
99pool_conf=" [$2 ]
1010
11- listen = /run/php/php7.0 -fpm-$2 .sock
11+ listen = /run/php/php5.6 -fpm-$2 .sock
1212listen.owner = $1
1313listen.group = $1
1414listen.mode = 0666
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pool_file_70="/etc/php/7.0/fpm/pool.d/$2.conf"
4444pool_file_71=" /etc/php/7.1/fpm/pool.d/$2 .conf"
4545pool_file_72=" /etc/php/7.2/fpm/pool.d/$2 .conf"
4646
47- if [ ! -f " $pool_file_56 " ]; then
47+ if [ -f " $pool_file_56 " ]; then
4848 echo " $pool_conf " > $pool_file_56
4949 service php5.6-fpm restart
5050fi
@@ -59,7 +59,7 @@ if [ -f "$pool_file_71" ]; then
5959 service php7.1-fpm restart
6060fi
6161
62- if [ -f " $pool_file_72 " ]; then
62+ if [ ! -f " $pool_file_72 " ]; then
6363 rm $pool_file_72
6464 service php7.2-fpm restart
6565fi
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ docroot="$5"
88
99pool_conf=" [$2 ]
1010
11- listen = /run/php/php7.0 -fpm-$2 .sock
11+ listen = /run/php/php5.6 -fpm-$2 .sock
1212listen.owner = $1
1313listen.group = $1
1414listen.mode = 0666
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pool_file_70="/etc/php/7.0/fpm/pool.d/$2.conf"
4444pool_file_71=" /etc/php/7.1/fpm/pool.d/$2 .conf"
4545pool_file_72=" /etc/php/7.2/fpm/pool.d/$2 .conf"
4646
47- if [ ! -f " $pool_file_56 " ]; then
47+ if [ -f " $pool_file_56 " ]; then
4848 echo " $pool_conf " > $pool_file_56
4949 service php5.6-fpm restart
5050fi
@@ -59,7 +59,7 @@ if [ -f "$pool_file_71" ]; then
5959 service php7.1-fpm restart
6060fi
6161
62- if [ -f " $pool_file_72 " ]; then
62+ if [ ! -f " $pool_file_72 " ]; then
6363 rm $pool_file_72
6464 service php7.2-fpm restart
6565fi
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ docroot="$5"
88
99pool_conf=" [$2 ]
1010
11- listen = /run/php/php7.0 -fpm-$2 .sock
11+ listen = /run/php/php5.6 -fpm-$2 .sock
1212listen.owner = $1
1313listen.group = $1
1414listen.mode = 0666
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pool_file_70="/etc/php/7.0/fpm/pool.d/$2.conf"
4444pool_file_71=" /etc/php/7.1/fpm/pool.d/$2 .conf"
4545pool_file_72=" /etc/php/7.2/fpm/pool.d/$2 .conf"
4646
47- if [ ! -f " $pool_file_56 " ]; then
47+ if [ -f " $pool_file_56 " ]; then
4848 echo " $pool_conf " > $pool_file_56
4949 service php5.6-fpm restart
5050fi
@@ -59,7 +59,7 @@ if [ -f "$pool_file_71" ]; then
5959 service php7.1-fpm restart
6060fi
6161
62- if [ -f " $pool_file_72 " ]; then
62+ if [ ! -f " $pool_file_72 " ]; then
6363 rm $pool_file_72
6464 service php7.2-fpm restart
6565fi
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ docroot="$5"
88
99pool_conf=" [$2 ]
1010
11- listen = /run/php/php7.0 -fpm-$2 .sock
11+ listen = /run/php/php5.6 -fpm-$2 .sock
1212listen.owner = $1
1313listen.group = $1
1414listen.mode = 0666
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pool_file_70="/etc/php/7.0/fpm/pool.d/$2.conf"
4444pool_file_71=" /etc/php/7.1/fpm/pool.d/$2 .conf"
4545pool_file_72=" /etc/php/7.2/fpm/pool.d/$2 .conf"
4646
47- if [ ! -f " $pool_file_56 " ]; then
47+ if [ -f " $pool_file_56 " ]; then
4848 echo " $pool_conf " > $pool_file_56
4949 service php5.6-fpm restart
5050fi
@@ -59,7 +59,7 @@ if [ -f "$pool_file_71" ]; then
5959 service php7.1-fpm restart
6060fi
6161
62- if [ -f " $pool_file_72 " ]; then
62+ if [ ! -f " $pool_file_72 " ]; then
6363 rm $pool_file_72
6464 service php7.2-fpm restart
6565fi
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ docroot="$5"
88
99pool_conf=" [$2 ]
1010
11- listen = /run/php/php7.0 -fpm-$2 .sock
11+ listen = /run/php/php5.6 -fpm-$2 .sock
1212listen.owner = $1
1313listen.group = $1
1414listen.mode = 0666
You can’t perform that action at this time.
0 commit comments