Update install.sh

This commit is contained in:
Mr Chen 2024-06-11 19:03:26 +08:00
parent 3798ac5e09
commit 26d7aeb401
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ fi
if [ "$OSNAME" == "ubuntu" ];then
echo "y" | LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php && apt update -y
if [ ! -f /etc/apt/sources.list.d/ondrej-ubuntu-php-jammy.list ];then
echo "y" | LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php && apt update -y
fi
fi
# apt install $(grep-aptavail -S PHP-defaults -s Package -n)