Install gpg with apt

This commit is contained in:
FusionPBX 2024-12-30 08:59:22 -07:00 committed by GitHub
parent b837c958e7
commit 327d6d136c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ mkdir /etc/apt/keyrings
#postgres official repository
if [ ."$database_repo" = ."official" ]; then
apt install -y gpg
sh -c 'echo "deb [signed-by=/etc/apt/keyrings/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/keyrings/pgdg.gpg
chmod 644 /etc/apt/keyrings/pgdg.gpg