1 2 3 4 5 6 7 8 9 10 11 12 13
generate_random_secret_key() { # Generate a random secret key sed -i -e "s/ultrasecretkey\" # change this!/`openssl rand -hex 32`\"/g" /etc/searx/settings.yml } post_install() { generate_random_secret_key } post_upgrade() { generate_random_secret_key }