Install gpg with apt
This commit is contained in:
parent
b837c958e7
commit
327d6d136c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue