-
Notifications
You must be signed in to change notification settings - Fork 229
Expand file tree
/
Copy pathdependencies
More file actions
executable file
·29 lines (23 loc) · 1.28 KB
/
dependencies
File metadata and controls
executable file
·29 lines (23 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /usr/bin/env bash
set -e
# dependencies
export DEBIAN_FRONTEND=noninteractive
# Add PostgreSQL APT repository for PostgreSQL 14
apt-retry sh -c 'apt-get update && apt-get install -y curl ca-certificates lsb-release'
install -d /usr/share/postgresql-common/pgdg
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
. /etc/os-release
sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt ${VERSION_CODENAME}-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
apt-retry sh -c 'apt-get update && apt-get install -y curl apt-transport-https \
postgresql-client-14 postgresql-14 postgresql-contrib \
sudo supervisor psmisc \
nginx rsync jq golang-github-pelletier-go-toml netcat-openbsd \
libunwind8 sqlite3 libc++abi1-20 libc++1-20'
apt-get clean
rm -rf /var/lib/apt/lists/*
chown -R www-data:www-data /var/lib/nginx
# Remove broken symlink in Debian 13 (Trixie) where /var/log/README points to
# systemd docs that aren't installed. The symlink is relative, which causes
# commands like docker cp to fail when copying /var/log.
rm -f /var/log/README
echo "\nDone installing dependencies...\n"