diff options
Diffstat (limited to 'searx/searx.install')
-rw-r--r-- | searx/searx.install | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/searx/searx.install b/searx/searx.install new file mode 100644 index 000000000..7c0469198 --- /dev/null +++ b/searx/searx.install @@ -0,0 +1,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 +} + |