瀏覽代碼

Add ppa:ondrej/php for 20.04 LTS focal

FusionPBX 1 年之前
父節點
當前提交
fb931b299a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      ubuntu/resources/php.sh

+ 2 - 1
ubuntu/resources/php.sh

@@ -16,7 +16,8 @@ if [ ."$os_name" = ."Ubuntu" ]; then
 	#20.04.x - /*bionic/
         if [ ."$os_codename" = ."focal" ]; then
                 echo "Ubuntu 20.04 LTS\n"
-		php_version=7.4
+                which add-apt-repository || apt-get install -y software-properties-common
+                LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
         fi
 	#18.04.x - /*bionic/
         if [ ."$os_codename" = ."bionic" ]; then