POSTIN
/bin/sh
# Check to see if the secret key for Django needs setting, and then set it if grep -q '\[\[SECRETKEY\]\]' /etc/transifex/10-base.conf then key=$(python << EOF import random print ''.join(chr(random.randint(35, 126)) for x in xrange(40)).replace('&', '\&') EOF ) sed -i -e "s!\[\[SECRETKEY\]\]!$key!" \ /etc/transifex/10-base.conf fi