12 lines
494 B
Bash
12 lines
494 B
Bash
#Do not generate php pool when php is not installed
|
|
if [ $webserv != nginx_nonphp ]; then
|
|
|
|
#Setup PHP Pool
|
|
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/CMS/none/Fpm-Pool.conf-unconfigured -o /etc/php/"$phpver"/fpm/pool.d/"$sitename".conf
|
|
sed -i -e 's/PHPver/'$phpver'/g' -e 's/SITEname/'$sitename'/g' -e 's/DOMAINname/'$domain'/' /etc/php/"$phpver"/fpm/pool.d/$sitename.conf
|
|
groupadd "$sitename"
|
|
useradd -g "$sitename" "$sitename"
|
|
|
|
systemctl reload php"$phpver"-fpm
|
|
|
|
fi |