mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Update postinst
This commit is contained in:
parent
cef9dfd632
commit
4ad0611e6c
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue