Avoid php patching if Deb9 and Apache=no

This commit is contained in:
myvesta 2020-09-17 12:04:33 +02:00 committed by GitHub
commit 65625ce990
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1531,6 +1531,7 @@ touch /var/log/php-mail.log
chmod a=rw /var/log/php-mail.log chmod a=rw /var/log/php-mail.log
if [ "$release" -eq 9 ]; then if [ "$release" -eq 9 ]; then
if [ "$apache" = 'yes' ]; then
if [ $memory -lt 10000000 ]; then if [ $memory -lt 10000000 ]; then
echo "=== Patching php7.0-vps" echo "=== Patching php7.0-vps"
mkdir -p /root/vesta-temp-dl/vesta/patch mkdir -p /root/vesta-temp-dl/vesta/patch
@ -1544,6 +1545,7 @@ if [ "$release" -eq 9 ]; then
patch -p1 --directory=/ < /root/vesta-temp-dl/vesta/patch/php7.0-dedi.patch patch -p1 --directory=/ < /root/vesta-temp-dl/vesta/patch/php7.0-dedi.patch
fi fi
fi fi
fi
if [ "$release" -eq 10 ]; then if [ "$release" -eq 10 ]; then
if [ $memory -lt 10000000 ]; then if [ $memory -lt 10000000 ]; then
echo "=== Patching php7.3-vps" echo "=== Patching php7.3-vps"