From 05a824410d37c6667eeca7b5901cc49c52c1504d Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 3 Nov 2023 10:48:24 +0100 Subject: [PATCH] Use apt and set -eux --- infrastructure/docker/image/resources/install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/infrastructure/docker/image/resources/install.sh b/infrastructure/docker/image/resources/install.sh index 13e9ff1..0660ebd 100755 --- a/infrastructure/docker/image/resources/install.sh +++ b/infrastructure/docker/image/resources/install.sh @@ -1,13 +1,15 @@ #!/bin/bash +set -eux + function main() { - apt-get update > /dev/null; - apt-get install -qqy ca-certificates curl wget gnupg > /dev/null + apt update > /dev/null; + apt install -qqy ca-certificates curl wget gnupg > /dev/null sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - - apt-get update > /dev/null; - apt-get -qqy install wget postgresql-client-14 restic > /dev/null; + apt update > /dev/null; + apt -qqy install wget postgresql-client-14 restic > /dev/null; update-ca-certificates