Browse Source

Update permissions on pgdg.gpg file

FusionPBX 1 year ago
parent
commit
7ceb1293e8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      debian/resources/postgresql.sh

+ 1 - 0
debian/resources/postgresql.sh

@@ -30,6 +30,7 @@ fi
 if [ ."$database_repo" = ."official" ]; then
 if [ ."$database_repo" = ."official" ]; then
 	sh -c 'echo "deb [signed-by=/etc/apt/trusted.gpg.d/pgdg.gpg] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
 	sh -c 'echo "deb [signed-by=/etc/apt/trusted.gpg.d/pgdg.gpg] 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 | gpg --dearmor -o /etc/apt/trusted.gpg.d/pgdg.gpg
 	wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/pgdg.gpg
+	chmod 644 /etc/apt/trusted.gpg.d/pgdg.gpg
 	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
 		if [ ."$database_version" = ."latest" ]; then
 		if [ ."$database_version" = ."latest" ]; then