You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213
  1. #!/bin/bash
  2. # Check for secret key if one doesn't exist create.
  3. if [ ! -f /data/production_secret_key.txt ]
  4. then
  5. cd /data
  6. PRODUCTION_SECRET_KEY=`pwgen -c -n -1 65`
  7. echo $PRODUCTION_SECRET_KEY > /data/production_secret_key.txt
  8. else
  9. PRODUCTION_SECRET_KEY=`cat /data/production_secret_key.txt`
  10. fi
  11. echo ${PRODUCTION_SECRET_KEY}