diff options
Diffstat (limited to 'roles/contexts')
-rw-r--r-- | roles/contexts/fretlink/templates/environment.j2 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/roles/contexts/fretlink/templates/environment.j2 b/roles/contexts/fretlink/templates/environment.j2 index e5e2c64..50dc75b 100644 --- a/roles/contexts/fretlink/templates/environment.j2 +++ b/roles/contexts/fretlink/templates/environment.j2 | |||
@@ -36,8 +36,9 @@ build_macaroon() { | |||
36 | target="uri://fretlink/$3" | 36 | target="uri://fretlink/$3" |
37 | realm="$4" | 37 | realm="$4" |
38 | 38 | ||
39 | cd "$HOME/workdir/haskell-commons" | 39 | pushd "$HOME/workdir/haskell-commons" >/dev/null 2>/dev/null |
40 | MACAROON_PRIVATE_KEY="$secret" MACAROON_SECRET="$secret" stack exec macaroon-bakery -- $action --location "$target" --key-id "$src" $ttl "$realm" | 40 | MACAROON_PRIVATE_KEY="$secret" MACAROON_SECRET="$secret" stack exec macaroon-bakery -- $action --location "$target" --key-id "$src" $ttl "$realm" |
41 | popd 2>/dev/null >/dev/null | ||
41 | } | 42 | } |
42 | 43 | ||
43 | APP=$(basename $(pwd)) | 44 | APP=$(basename $(pwd)) |
@@ -197,7 +198,8 @@ if [ "$APP" = "notifier" ]; then | |||
197 | export MACAROON="$(build_macaroon --old $FL_NOTIFIER_PRIVATE_KEY notifier notifier external)" | 198 | export MACAROON="$(build_macaroon --old $FL_NOTIFIER_PRIVATE_KEY notifier notifier external)" |
198 | 199 | ||
199 | # To push transporeon cargos to app | 200 | # To push transporeon cargos to app |
200 | APP_TRANSPOREON_PUSH_MACAROON="$(build_macaroon $FL_APP_SECRET notifier app app::transporeon-cargos-write)" | 201 | export TRANSPOREON_APP_PUSH_URL="http://localhost:8080/api/transporeon/cargo" |
202 | export TRANSPOREON_APP_PUSH_MACAROON="$(build_macaroon $FL_APP_SECRET notifier app app::transporeon-cargos-write)" | ||
201 | fi | 203 | fi |
202 | 204 | ||
203 | if [ "$APP" = "pricer" ]; then | 205 | if [ "$APP" = "pricer" ]; then |