Restoring php-fpm pool.d conf files

This commit is contained in:
myvesta 2021-09-14 21:43:46 +02:00 committed by GitHub
commit 7ee21aad7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -443,7 +443,10 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
# Restoring php-fpm pool.d conf files
if [ -d "$tmpdir/web/$domain/php" ]; then
cp -r $tmpdir/web/$domain/php/ /etc/
fpmver=$(ls $tmpdir/web/$domain/php/)
cp -r $tmpdir/web/$domain/php/$fpmver/ /etc/php/
systemctl reset-failed php$fpmver-fpm
systemctl restart php$fpmver-fpm
fi
done