From 562ab8777187775ce2da6f35fdafabdfd3e9f00e Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 11 Jun 2024 19:05:02 +0800 Subject: [PATCH] Update install.sh --- plugins/php-apt/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/php-apt/install.sh b/plugins/php-apt/install.sh index cfa0ccf04..d3a88e8d2 100755 --- a/plugins/php-apt/install.sh +++ b/plugins/php-apt/install.sh @@ -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