Update install.sh

This commit is contained in:
Mr Chen 2024-06-11 19:05:02 +08:00
parent 26d7aeb401
commit 562ab87771
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ fi
if [ "$OSNAME" == "ubuntu" ];then
if [ ! -f /etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.list ];then
find_source=`ls /etc/apt/sources.list.d | grep ondrej-ubuntu-php`
if [ "$find_source" == "" ];then
echo "y" | LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php && apt update -y
fi
fi