dda-backup/infrastrucure/docker/image/resources/install.sh

17 lines
600 B
Bash
Raw Normal View History

2020-12-04 17:10:24 +00:00
#!/bin/bash
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-13 restic > /dev/null;
update-ca-certificates
2020-12-12 12:19:36 +00:00
install -m 0700 /tmp/entrypoint.sh /
2020-12-04 17:10:24 +00:00
install -m 0700 /tmp/init.sh /usr/local/bin/
install -m 0700 /tmp/backup.sh /usr/local/bin/
install -m 0700 /tmp/restore.sh /usr/local/bin/