summaryrefslogtreecommitdiff
path: root/bin/taler-deployment-dbstart
blob: 2b740eef01e88eb897369a530e684d4c14e0bee5 (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
#!/usr/bin/env bash

# Start the local database used for Taler if necessary (because we're a
# standalone environment) and possible.

set -eu

base=$HOME

export PATH="$base/deployment":$PATH

ulimit -c $((100 * 1024))

cd $HOME

if [[ ! -e ~/local/bin/gnunet-arm ]]; then
  echo "not starting database, since gnunet-arm is not installed"
  exit
fi

if [ "${TALER_CONFIG_STANDALONE:-0}" = 1 ]; then
  taler-deployment-arm -s
  taler-deployment-arm -i taler-postgres-standalone
fi