2020-12-04 17:10:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-03-12 14:40:26 +00:00
|
|
|
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 -
|
2020-12-04 17:10:24 +00:00
|
|
|
|
2021-03-12 14:40:26 +00:00
|
|
|
apt-get update > /dev/null;
|
2021-11-10 12:34:07 +00:00
|
|
|
apt-get -qqy install wget postgresql-client-14 restic > /dev/null;
|
2020-12-04 17:10:24 +00:00
|
|
|
|
2021-03-12 14:40:26 +00:00
|
|
|
update-ca-certificates
|
2020-12-04 17:10:24 +00:00
|
|
|
|
2021-03-12 14:40:26 +00:00
|
|
|
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
|