Skip to content

Commit

Permalink
Merge pull request #70 from jmpsec/fix-docker-jwt
Browse files Browse the repository at this point in the history
Fix for error generating jwt.json
  • Loading branch information
javuto authored May 11, 2020
2 parents a65efbf + 6b61e70 commit 72f3a38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ docker_down:
docker_clean:
make docker_down
./deploy/docker/dockerize.sh -x
rm -Rf deploy/docker/certs/*
rm -Rf deploy/docker/config/*
docker volume rm osctrl_db-data
rm -Rf docker/certs/*
rm -Rf docker/config/*

# Auto-format and simplify the code
GOFMT_ARGS = -l -w -s
Expand Down
2 changes: 1 addition & 1 deletion deploy/docker/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ JWT_JSON="$CONFIGDIR/jwt.json"
if [[ -f "$JWT_JSON" && "$_FORCE" == false ]]; then
log "Using existing $JWT_JSON"
else
cat "$CONFIGDIR/jwt.json" | sed "s|_JWT_SECRET|$_JWT_SECRET|g" | tee "$JWT_JSON"
cat "$DEPLOYDIR/config/jwt.json" | sed "s|_JWT_SECRET|$_JWT_SECRET|g" | tee "$JWT_JSON"
fi

log "Preparing configuration for backend"
Expand Down

0 comments on commit 72f3a38

Please sign in to comment.