POSTIN
/bin/sh
# Change the SECRET_KEY option in the Django settings.py file # required for security reasons, should be unique on all systems RAND_SECRET=$(openssl rand -base64 40 | sed 's/\//\\\//g') sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/web/settings.py