mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Making sure mpm_event will stay
This commit is contained in:
parent
cdcc726ac7
commit
2ef5c92325
1 changed files with 36 additions and 0 deletions
|
@ -110,6 +110,42 @@ if [ ! -f "/usr/local/vesta/data/upgrades/change-clamav-socket-v2" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Making sure mpm_event will stay
|
||||||
|
if [ ! -f "/usr/local/vesta/data/upgrades/keeping-mpm-event" ]; then
|
||||||
|
touch /usr/local/vesta/data/upgrades/keeping-mpm-event
|
||||||
|
|
||||||
|
check_grep=$(grep -c "WEB_SYSTEM='apache2'" /usr/local/vesta/conf/vesta.conf)
|
||||||
|
if [ "$check_grep" -eq 1 ]; then
|
||||||
|
|
||||||
|
switch_to_mpm_event=0
|
||||||
|
|
||||||
|
release=$(cat /etc/debian_version | tr "." "\n" | head -n1)
|
||||||
|
if [ "$release" -eq 10 ]; then
|
||||||
|
echo "=== Keeping mpm_event (1)"
|
||||||
|
switch_to_mpm_event=1
|
||||||
|
else
|
||||||
|
check_grep=$(/usr/local/vesta/bin/v-list-sys-web-status | grep -c "Server MPM: event")
|
||||||
|
if [ "$check_grep" -eq 1 ]; then
|
||||||
|
echo "=== Keeping mpm_event (2)"
|
||||||
|
switch_to_mpm_event=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ "$switch_to_mpm_event" -eq 1 ]; then
|
||||||
|
apt-get -y remove libapache2-mod-php7.4
|
||||||
|
a2dismod ruid2
|
||||||
|
a2dismod suexec
|
||||||
|
a2dismod php5.6
|
||||||
|
a2dismod php7.0
|
||||||
|
a2dismod php7.1
|
||||||
|
a2dismod php7.2
|
||||||
|
a2dismod php7.4
|
||||||
|
a2dismod mpm_prefork
|
||||||
|
a2enmod mpm_event
|
||||||
|
service apache2 restart
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Run custom triggers
|
# Run custom triggers
|
||||||
if [ -x "/root/vesta-patch.sh" ]; then
|
if [ -x "/root/vesta-patch.sh" ]; then
|
||||||
/root/vesta-patch.sh
|
/root/vesta-patch.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue