add fpmmax
This commit is contained in:
parent
5425e7a168
commit
77f5fca521
|
@ -37,7 +37,7 @@ else
|
||||||
usernames=(`ls /home/`)
|
usernames=(`ls /home/`)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
output="username uid jailed passwd"
|
output="username uid jailed passwd fpmmax"
|
||||||
|
|
||||||
for username in "${usernames[@]}"
|
for username in "${usernames[@]}"
|
||||||
do
|
do
|
||||||
|
@ -49,7 +49,7 @@ do
|
||||||
password=`echo "$password" | openssl aes-256-cbc -d -a -pass pass:$opensslpass -pbkdf2`
|
password=`echo "$password" | openssl aes-256-cbc -d -a -pass pass:$opensslpass -pbkdf2`
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
password=
|
password="(unknown)"
|
||||||
fi
|
fi
|
||||||
shell=(`grep $username /etc/passwd|awk -F : '{ print $6 }'`)
|
shell=(`grep $username /etc/passwd|awk -F : '{ print $6 }'`)
|
||||||
if [[ $shell = "/usr/jails/$username/./home/$username" ]]; then
|
if [[ $shell = "/usr/jails/$username/./home/$username" ]]; then
|
||||||
|
@ -57,7 +57,13 @@ do
|
||||||
else
|
else
|
||||||
jailed="No"
|
jailed="No"
|
||||||
fi
|
fi
|
||||||
output="$output${NL}$username $userid $jailed $password"
|
vhost::set-phpVersion
|
||||||
|
if [[ -f /etc/php/$phpVersion/fpm/pool.d/$username.conf ]]; then
|
||||||
|
fpmmax=(`grep pm.max_children /etc/php/$phpVersion/fpm/pool.d/$username.conf |awk -F = '{ gsub(/ /,""); print $2 }'`);
|
||||||
|
else
|
||||||
|
fpmmax=0
|
||||||
|
fi
|
||||||
|
output="$output${NL}$username $userid $jailed $password $fpmmax"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ $cvs ]]; then
|
if [[ $cvs ]]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user