Use apt and set -eux
This commit is contained in:
parent
3ccd1b8643
commit
05a824410d
1 changed files with 6 additions and 4 deletions
|
@ -1,13 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
apt-get update > /dev/null;
|
apt update > /dev/null;
|
||||||
apt-get install -qqy ca-certificates curl wget gnupg > /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'
|
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 -
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
||||||
|
|
||||||
apt-get update > /dev/null;
|
apt update > /dev/null;
|
||||||
apt-get -qqy install wget postgresql-client-14 restic > /dev/null;
|
apt -qqy install wget postgresql-client-14 restic > /dev/null;
|
||||||
|
|
||||||
update-ca-certificates
|
update-ca-certificates
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue