Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 8901ed09dd6d5b99c863b7ea1c0f279d > scriptlet

transifex-0.8.0-0.2.alpha.fc14.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