From 7b859e8d4afcdf126b3d82cf6fb38cf117633ea1 Mon Sep 17 00:00:00 2001 From: amidevous Date: Sat, 12 Oct 2024 13:21:31 +0200 Subject: [PATCH] Update build-php.sh --- build-php.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-php.sh b/build-php.sh index b793a7a..45ff069 100644 --- a/build-php.sh +++ b/build-php.sh @@ -36,7 +36,7 @@ cd /root/phpbuild/ wget --no-check-certificate https://www.php.net/distributions/php-7.4.33.tar.gz -O /root/phpbuild/php-7.4.33.tar.gz rm -rf /root/phpbuild/php-7.4.33 tar -xvf /root/phpbuild/php-7.4.33.tar.gz -if [[ "$VER" = "18.04" || "$VER" = "20.04" || "$VER" = "22.04" || "$VER" = "24.04" || "$VER" = "11" || "$VER" = "37" || "$VER" = "38" ]]; then +if [[ "$VER" = "18.04" || "$VER" = "20.04" || "$VER" = "22.04" || "$VER" = "24.04" || "$VER" = "11" || "$OS" = "Fedora" ]]; then wget --no-check-certificate "https://launchpad.net/~ondrej/+archive/ubuntu/php/+sourcefiles/php7.3/7.3.33-2+ubuntu22.04.1+deb.sury.org+1/php7.3_7.3.33-2+ubuntu22.04.1+deb.sury.org+1.debian.tar.xz" -O /root/phpbuild/debian.tar.xz tar -xf /root/phpbuild/debian.tar.xz rm -f /root/phpbuild/debian.tar.xz @@ -54,6 +54,8 @@ killall php killall php-fpm killall php killall php-fpm +chattr -i /home/xui/bin/php/sbin/php-fpm +chattr -i /home/xui/bin/php/bin/php make install cd /root rm -rf /root/phpbuild/