#!/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 \ 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