Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
build(bin): use sed on the example environment file
Browse files Browse the repository at this point in the history
  • Loading branch information
bitterteriyaki committed Sep 20, 2023
1 parent 44f5bd8 commit 37eb136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/create-env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ print(get_random_string(64))
EOM

SECRET_KEY=$(python3 -c "${SECRET_KEY_CMD}")
OUTPUT=$(sed "s/^\(DJANGO_SECRET_KEY=\).*/\1$SECRET_KEY/" config/.env)
OUTPUT=$(sed "s/^\(DJANGO_SECRET_KEY=\).*/\1$SECRET_KEY/" config/.env.example)

echo "$OUTPUT" > config/.env

0 comments on commit 37eb136

Please sign in to comment.