Skip to content

Commit

Permalink
Merge pull request #190 from ernestio/cross
Browse files Browse the repository at this point in the history
Cross platform sed on setup script
  • Loading branch information
purehyperbole authored Dec 2, 2016
2 parents c6b8a0b + e0e7c52 commit 8966256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ openssl req \
-keyout ./config/nginx/ernest.key \
-out ./config/nginx/ernest.crt

sed -i "s/ERNESTHOST/$ERNESTHOST/g" ./config/nginx/ernest.local
sed -i.bak "s/ERNESTHOST/$ERNESTHOST/g" ./config/nginx/ernest.local && rm ./config/nginx/ernest.local.bak

# Setup a random JWT Token for api-gateway
TOKEN=`openssl rand -base64 32`
sed -i "s:GENERATEDJWTSECRET:$TOKEN:g" docker-compose.yml
sed -i.bak "s:GENERATEDJWTSECRET:$TOKEN:g" docker-compose.yml && rm docker-compose.yml.bak

# Make volume for postgres data
mkdir -p postgres/data
Expand Down

0 comments on commit 8966256

Please sign in to comment.