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
}

