taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit f60698378ff5c5df29c0fd0f499be2b08ba13646
parent 90b1b4385f9c3c65877400bccbb36dffa6735965
Author: Antoine A <>
Date:   Sat, 13 Dec 2025 11:08:07 +0100

regional: improve upgrade script

Diffstat:
Mregional-currency/upgrade.sh | 16+++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/regional-currency/upgrade.sh b/regional-currency/upgrade.sh @@ -2,19 +2,25 @@ # This file is in the public domain. set -eu +notify_err() { + echo "errexit on line $(caller)" >&2 +} + +trap notify_err ERR + echo "Fetching package list..." -apt-get update +apt-get update -y echo -n "Stopping Taler services..." systemctl disable --now taler-exchange.target &>> upgrade.log systemctl disable --now taler-merchant.target &>> upgrade.log -systemctl disable --now libeufin-bank &>> upgrade.log +systemctl disable --now libeufin-bank.target &>> upgrade.log systemctl disable --now libeufin-nexus.target &>> upgrade.log echo " OK" echo "Upgrading packages..." -apt-get upgrade -apt-get dist-upgrade +apt-get upgrade -y +apt-get dist-upgrade -y if test -x /etc/taler/taler.conf then @@ -40,7 +46,7 @@ echo " OK" echo -n "Restarting Taler services..." systemctl enable --now taler-exchange.target &>> upgrade.log systemctl enable --now taler-merchant.target &>> upgrade.log -systemctl enable --now libeufin-bank &>> upgrade.log +systemctl enable --now libeufin-bank.target &>> upgrade.log systemctl enable --now libeufin-nexus.target &>> upgrade.log echo " OK"