mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
Increment backend port also when commented
This allows to grep the incremented port also for other backends then php-fpm with `%backend_lsnr%` in the web template.
This commit is contained in:
parent
3d8b6a87a7
commit
95a345f2dc
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ fi
|
||||||
|
|
||||||
# Allocating backend port
|
# Allocating backend port
|
||||||
backend_port=9000
|
backend_port=9000
|
||||||
ports=$(grep -v '^;' $pool/* 2>/dev/null |grep listen |grep -o :[0-9].*)
|
ports=$(grep listen $pool/* 2>/dev/null |grep -o :[0-9].*)
|
||||||
ports=$(echo "$ports" |sed "s/://" |sort -n)
|
ports=$(echo "$ports" |sed "s/://" |sort -n)
|
||||||
for port in $ports; do
|
for port in $ports; do
|
||||||
if [ "$backend_port" -eq "$port" ]; then
|
if [ "$backend_port" -eq "$port" ]; then
|
||||||
|
|
|
@ -52,7 +52,7 @@ rm -f $pool/$backend_type.conf
|
||||||
|
|
||||||
# Allocating backend port
|
# Allocating backend port
|
||||||
backend_port=9000
|
backend_port=9000
|
||||||
ports=$(grep -v '^;' $pool/* 2>/dev/null |grep listen |grep -o :[0-9].*)
|
ports=$(grep listen $pool/* 2>/dev/null |grep -o :[0-9].*)
|
||||||
ports=$(echo "$ports" |sed "s/://" |sort -n)
|
ports=$(echo "$ports" |sed "s/://" |sort -n)
|
||||||
for port in $ports; do
|
for port in $ports; do
|
||||||
if [ "$backend_port" -eq "$port" ]; then
|
if [ "$backend_port" -eq "$port" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue