Changeset cabf7ac for remit/settings/init-dev.sh
- Timestamp:
- Jul 5, 2014, 8:40:00 PM (11 years ago)
- Branches:
- master
- Children:
- 4c6a731
- Parents:
- 7fb28a0
- git-author:
- Alex Dehnert <adehnert@…> (07/05/14 20:40:00)
- git-committer:
- Alex Dehnert <adehnert@…> (07/05/14 20:40:00)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
remit/settings/init-dev.sh
re24d22f rcabf7ac 7 7 8 8 echo Creating config files... 9 secret=$(python -c "import random; ''.join([random.choice('abcdefghijklmnopqrstuvwxyz0123456789@#%&-_=+') for i in range(50)])")9 secret=$(python -c "import random; print(''.join([random.choice('abcdefghijklmnopqrstuvwxyz0123456789@#%&-_=+') for i in range(50)]))") 10 10 secret_re="s/^#SECRET_KEY = something$/SECRET_KEY = '$secret'/" 11 11 sed -e "$secret_re" < "$settings/local.dev-template.py" > "$settings/local.py"
Note: See TracChangeset
for help on using the changeset viewer.