From 4ad0611e6c93c063106aca521fbb129a29ad02c3 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Mon, 6 Jul 2020 00:13:27 +0200 Subject: [PATCH] Update postinst --- src/deb/vesta/postinst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index e2bf8dbde..e414afdb1 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -23,9 +23,12 @@ fi echo "1" > /usr/local/vesta/data/upgrades/show_changelog chmod a=rw /usr/local/vesta/data/upgrades/show_changelog +# Tuning of php-fpm pool.d config files (perfomances and limits) if [ ! -f "/usr/local/vesta/data/upgrades/tune-fpm-config-files-v2" ]; then touch /usr/local/vesta/data/upgrades/tune-fpm-config-files-v2 + echo "== Tuning of php-fpm pool.d config files (perfomances and limits)" + mkdir -p /root/etc-php-backup2 cp -r /etc/php/ /root/etc-php-backup2/ @@ -46,6 +49,7 @@ if [ ! -f "/usr/local/vesta/data/upgrades/tune-fpm-config-files-v2" ]; then # restart all php-fpm services systemctl --full --type service --all | grep "php...-fpm" | awk '{print $1}' | xargs systemctl restart + echo "== Done" fi if [ ! -f "/usr/local/vesta/data/upgrades/allow-backup-anytime" ]; then