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