From 76741076e79d23bf0e55d03e3d92a16afaad60f6 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 15 Jun 2020 15:40:09 +0200 Subject: searx: fix wrong location Signed-off-by: Denis 'GNUtoo' Carikli --- pcr/searx/searx.install | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pcr/searx/searx.install (limited to 'pcr/searx/searx.install') diff --git a/pcr/searx/searx.install b/pcr/searx/searx.install new file mode 100644 index 000000000..7c0469198 --- /dev/null +++ b/pcr/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 +} + -- cgit v1.2.3