summaryrefslogtreecommitdiff
path: root/pcr/searx/searx.install
blob: 7c046919867a7318dd3a07ef4fb93592c984aa16 (plain)
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
}