dda-backup/infrastructure/docker/image/resources/install.sh
2021-11-10 13:34:07 +01:00

22 lines
699 B
Bash
Executable file

#!/bin/bash
function main() {
apt-get update > /dev/null;
apt-get 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;
update-ca-certificates
install -m 0400 /tmp/functions.sh /usr/local/lib/
install -m 0400 /tmp/pg-functions.sh /usr/local/lib/
install -m 0400 /tmp/file-functions.sh /usr/local/lib/
cleanupDocker
}
source /tmp/install_functions.sh
main