summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-07-17 13:29:38 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-07-17 13:29:38 +0200
commit0141a934901a8f414ba1498f165591f5eee26f46 (patch)
tree5ed26db80954e9760310b4ac52c88b82ab7299b5
parent10be4bfcb08c881d63af611491f35e9a5378bb77 (diff)
downloaddeployment-0141a934901a8f414ba1498f165591f5eee26f46.tar.gz
deployment-0141a934901a8f414ba1498f165591f5eee26f46.tar.bz2
deployment-0141a934901a8f414ba1498f165591f5eee26f46.zip
starting migration to shared-config in deployment (#5109)
-rwxr-xr-xbin/taler-deployment-config-generate8
-rwxr-xr-xbin/taler-deployment-config-sign3
2 files changed, 5 insertions, 6 deletions
diff --git a/bin/taler-deployment-config-generate b/bin/taler-deployment-config-generate
index 7c046de..2066836 100755
--- a/bin/taler-deployment-config-generate
+++ b/bin/taler-deployment-config-generate
@@ -25,9 +25,9 @@ if [[ ! -f $HOME/shared-data/exchange/offline-keys/master.priv ]] ; then
cp $base/deployment/private-keys/exchange-master.priv $HOME/shared-data/exchange/offline-keys/master.priv
fi
-if [[ ! -f $HOME/.local/share/taler/auditor/offline-keys/auditor.priv ]] ; then
- mkdir -p $HOME/.local/share/taler/auditor/offline-keys/
- cp $base/deployment/private-keys/auditor.priv $HOME/.local/share/taler/auditor/offline-keys/auditor.priv
+if [[ ! -f $HOME/shared-data/auditor/offline-keys/auditor.priv ]] ; then
+ mkdir -p $HOME/shared-data/auditor/offline-keys/
+ cp $base/deployment/private-keys/auditor.priv $HOME/shared-data/auditor/offline-keys/auditor.priv
fi
exchange_pub=$(gnunet-ecc -p $HOME/shared-data/exchange/offline-keys/master.priv)
@@ -35,6 +35,6 @@ exchange_pub=$(gnunet-ecc -p $HOME/shared-data/exchange/offline-keys/master.priv
$HOME/deployment/config/generate-config \
--exchange-pub "$exchange_pub" \
--currency "$TALER_CONFIG_CURRENCY" \
- --outdir ~/.config \
+ --outdir ~/shared-config \
--envname "$TALER_CONFIG_ENV" \
--standalone "${TALER_CONFIG_STANDALONE:-0}"
diff --git a/bin/taler-deployment-config-sign b/bin/taler-deployment-config-sign
index 0f6e082..5375294 100755
--- a/bin/taler-deployment-config-sign
+++ b/bin/taler-deployment-config-sign
@@ -6,7 +6,6 @@ base=$HOME
export PATH="$base/deployment":$PATH
-for f in ~/.config/taler/exchange/wire/*.unsigned.json; do
+for f in ~/shared-config/taler/exchange/wire/*.unsigned.json; do
taler-exchange-wire -j "$(<"$f")" > "${f%.unsigned.json}.json"
done
-