Skip to content

Commit

Permalink
Update php7.2build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
amidevous authored Nov 9, 2023
1 parent 909adfd commit 1934ae4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions php7.2build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ else
echo "Sorry, this OS is not supported by Xtream UI."
exit 1
fi
if [[ "$OS" = "Ubuntu" && "$VER" = "22.04" ]] ; then
sed -i "s|#\$nrconf{verbosity} = 2;|\$nrconf{verbosity} = 0;|" /etc/needrestart/needrestart.conf
sed -i "s|#\$nrconf{restart} = 'i';|\$nrconf{restart} = 'a';|" /etc/needrestart/needrestart.conf
fi
killall nginx
killall nginx_rtmp
killall php-fpm
Expand Down Expand Up @@ -478,8 +480,8 @@ cd /home/xtreamcodes/iptv_xtream_codes/phpbuild/igbinary-3.2.14
make -j$(nproc --all)
make install
cd /home/xtreamcodes/
rm -rf iptv_xtream_codes/phpbuild /root/main_xtreamcodes_reborn.tar.gz /root/main_xtreamcodes_reborn_php7.2_$OS_$VER.tar.gz
tar -czvf /root/main_xtreamcodes_reborn_php7.2_$OS_$VER.tar.gz iptv_xtream_codes
rm -rf iptv_xtream_codes/phpbuild /root/main_xtreamcodes_reborn.tar.gz /root/main_xtreamcodes_reborn_php7.2_"$OS"_"$VER"_"$ARCH".tar.gz
tar -czvf /root/main_xtreamcodes_reborn_php7.2_"$OS"_"$VER"_"$ARCH".tar.gz iptv_xtream_codes
cd
rm -rf "/home/xtreamcodes/"
mkdir -p "/home/xtreamcodes/tmp"
Expand Down Expand Up @@ -854,7 +856,7 @@ cd /home/xtreamcodes/iptv_xtream_codes/phpbuild/igbinary-3.2.14
make -j$(nproc --all)
make install
cd /home/xtreamcodes/
rm -rf iptv_xtream_codes/phpbuild /root/sub_xtreamcodes_reborn.tar.gz /root/sub_xtreamcodes_reborn_php7.2_$OS_$VER.tar.gz
tar -czvf /root/sub_xtreamcodes_reborn_php7.2_$OS_$VER.tar.gz iptv_xtream_codes
rm -rf iptv_xtream_codes/phpbuild /root/sub_xtreamcodes_reborn.tar.gz /root/sub_xtreamcodes_reborn_php7.2_"$OS"_"$VER"_"$ARCH".tar.gz
tar -czvf /root/sub_xtreamcodes_reborn_php7.2_"$OS"_"$VER"_"$ARCH".tar.gz iptv_xtream_codes
cd
rm -rf /home/xtreamcodes/

0 comments on commit 1934ae4

Please sign in to comment.