#!/bin/bash # This file is in the public domain. set -eu source functions.sh source config/user.conf source config/internal.conf # Check distro, if not supported echo and exit # Javier - Check distro ./check-distro.sh # Florian - Check distro detect_distro # Configure logs with journalD ./config_journald.sh # 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 ## Avoid prompts of dbconfig-common export DEBIAN_FRONTEND=noninteractive apt update apt install taler-exchange -y apt install taler-merchant -y apt install taler-harness -y apt install libeufin-sandbox libeufin-nexus -y