run.sh (1283B)
1 #/bin/bash 2 # This file is in the public domain. 3 4 THIS_FILE=$(realpath "$0") 5 DIR=$(dirname "$THIS_FILE") 6 cd $DIR/.. 7 # Workaround to help the script always work, specially 8 9 # If the database doesn't have the exchange account the 10 # script doesn't create a payto when this configuration 11 # is present 12 sed -i '/EXCHANGE_PAYTO=/d' config/user.conf 13 14 # Prevent conflict of the pub key with new run 15 sed -i '/MASTER_PUBLIC_KEY=/d' config/user.conf 16 17 # Always generate a new token and update the configuration 18 sed -i '/BANK_EXCHANGE_TOKEN=/d' config/internal.conf 19 20 ./main.sh 21 22 source config/user.conf 23 24 # Missing configuration on ebics 25 taler-exchange-config -c /etc/libeufin/libeufin-nexus.conf -s nexus-ebics -o currency -V $CURRENCY 26 27 # Allow the bank to authorize request with basic authentication 28 # required by the merchant to be able to use the "new bank account" setup with 29 # using the taler-revenue URL 30 taler-exchange-config -c /etc/libeufin/libeufin-bank.conf -s libeufin-bank -o PWD_AUTH_COMPAT -V yes 31 32 # Add some money into the accounts to easier testing 33 taler-exchange-config -c /etc/libeufin/libeufin-bank.conf -s libeufin-bank -o DEFAULT_DEBT_LIMIT -V $CURRENCY:200000 34 taler-exchange-config -c /etc/libeufin/libeufin-bank.conf -s libeufin-bank -o REGISTRATION_BONUS -V $CURRENCY:10000 35