Sophie

Sophie

distrib > Fedora > 13 > x86_64 > media > updates > by-pkgid > e4bbdaa133bf14de79621d7fdfa39df4 > scriptlet

transifex-0.9.1-1.fc13.noarch.rpm

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