From f3564282730ddb13ed1562b3f6b311cd8b45a0d5 Mon Sep 17 00:00:00 2001 From: Anton Georgiev Date: Tue, 28 May 2024 11:12:20 -0400 Subject: [PATCH] fix: avoid overwriting postgresql.gpg --- bbb-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bbb-install.sh b/bbb-install.sh index 81759e0..e544a62 100644 --- a/bbb-install.sh +++ b/bbb-install.sh @@ -314,7 +314,9 @@ main() { # postgres for BigBlueButton core sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' - curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg + if [ ! -f /etc/apt/trusted.gpg.d/postgresql.gpg ]; then + curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg + fi touch /root/.rnd MONGODB=mongodb-org