blob: 8924a77d16bb0901a60de24defb89845137f4c48 (
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
|
#!/bin/bash
# This file is in the public domain.
set -eu
echo "Fetching package list..."
apt-get update
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-nexus.target &>> upgrade.log
echo " OK"
echo "Upgrading packages..."
apt-get upgrade
echo "Upgrading databases..."
libeufin-dbconfig &>> upgrade.log
taler-exchange-dbconfig &>> upgrade.log
taler-merchant-dbconfig &>> upgrade.log
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-nexus.target &>> upgrade.log
echo " OK"
exit 0
|