summaryrefslogtreecommitdiff
path: root/regional-currency/install_packages.sh
blob: 2ef8494a30fcd036e2fcd3534fa4723a668b9d77 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/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=15

say "Installing necessary packages (this may take a while)..."

## Update

apt update &>> setup.log

## General requirements

apt install uuid-runtime \
  make \
  sudo \
  curl \
  jq \
  wget \
  nginx \
  postgresql-${PG_VERSION} \
  postgresql-client-${PG_VERSION} \
  dbconfig-pgsql \
  certbot \
  latexmk \
  texlive-latex-extra \
  texlive-latex-recommended \
  tex-gyre \
  python3-sphinx \
  python3-pip \
  python3-certbot-nginx -y &>> setup.log

pip3 install --break-system-packages \
     sphinx-markdown-builder \
     htmlark &>> setup.log

## 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)                                                                                      # TODO stable again when it is back ?
  echo "deb [signed-by=/etc/apt/keyrings/taler-systems.gpg] https://deb.taler.net/apt/debian bookworm 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 mantic taler-mantic" >/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 &>> setup.log

## Specific GNU Taler packages

say "Installing GNU Taler packages (this may take a while)..."

apt update &>> setup.log
apt install taler-exchange \
  taler-merchant \
  taler-harness \
  taler-wallet-cli \
  taler-exchange-offline \
  libeufin-bank \
  libeufin-nexus -y &>> setup.log