Update postinst

This commit is contained in:
myvesta 2020-07-06 00:13:27 +02:00 committed by GitHub
commit 4ad0611e6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,9 +23,12 @@ fi
echo "1" > /usr/local/vesta/data/upgrades/show_changelog echo "1" > /usr/local/vesta/data/upgrades/show_changelog
chmod a=rw /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 if [ ! -f "/usr/local/vesta/data/upgrades/tune-fpm-config-files-v2" ]; then
touch /usr/local/vesta/data/upgrades/tune-fpm-config-files-v2 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 mkdir -p /root/etc-php-backup2
cp -r /etc/php/ /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 # restart all php-fpm services
systemctl --full --type service --all | grep "php...-fpm" | awk '{print $1}' | xargs systemctl restart systemctl --full --type service --all | grep "php...-fpm" | awk '{print $1}' | xargs systemctl restart
echo "== Done"
fi fi
if [ ! -f "/usr/local/vesta/data/upgrades/allow-backup-anytime" ]; then if [ ! -f "/usr/local/vesta/data/upgrades/allow-backup-anytime" ]; then