瀏覽代碼

Update postgresql.sh

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

+ 1 - 1
ubuntu/resources/postgresql.sh

@@ -24,7 +24,7 @@ fi
 
 
 #postgres official repository
 #postgres official repository
 if [ ."$database_repo" = ."official" ]; then
 if [ ."$database_repo" = ."official" ]; then
-	echo "deb http://apt.postgresql.org/pub/repos/apt/ $os_codename-pgdg main" > /etc/apt/sources.list.d/postgresql.list
+	echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
 	wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
 	wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
 	apt-get update && apt-get upgrade -y
 	apt-get update && apt-get upgrade -y
 	if [ ."$database_host" = ."127.0.0.1" ] || [ ."$database_host" = ."::1" ] ; then
 	if [ ."$database_host" = ."127.0.0.1" ] || [ ."$database_host" = ."::1" ] ; then