summaryrefslogtreecommitdiff
path: root/netzbon/install_packages.sh
blob: 9b7770547a77c4a7315dbbd38f511233aee2f52d (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
# This file is in the public domain.

set -eu

source functions.sh
source config/user.conf
source config/internal.conf

detect_distro

# Program versions
PG_VERSION=14

## Update

apt update

## General requirements

apt install uuid-runtime \
    curl \
    jq \
    wget \
    nginx \
    postgresql-${PG_VERSION} \
    postgresql-client-${PG_VERSION} \
    dbconfig-pgsql \
    certbot \
    python3-certbot-nginx -y

## Add GNU Taler deb.taler.net to /etc/apt/sources.list

say "Adding GNU Taler apt repository"
say "Detected distro $DISTRO"

case $DISTRO in
  debian)
    echo "deb [signed-by=/etc/apt/keyrings/taler-systems.gpg] https://deb.taler.net/apt/debian stable main" > /etc/apt/sources.list.d/taler.list
  ;;
  ubuntu)
    echo "deb [signed-by=/etc/apt/keyrings/taler-systems.gpg] https://deb.taler.net/apt/ubuntu stable main" > /etc/apt/sources.list.d/taler.list
  ;;
  *)
    say "Unsupported distro: $DISTRO"
    exit 1
  ;;
esac


wget -P /etc/apt/keyrings https://taler.net/taler-systems.gpg

## Specific GNU Taler packages

apt update
apt install taler-exchange -y
apt install taler-merchant -y
apt install taler-harness -y
apt install libeufin-sandbox libeufin-nexus -y