summaryrefslogtreecommitdiff
path: root/pcr/searx/searx.install
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-06-15 15:40:09 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-06-15 15:40:09 +0200
commit76741076e79d23bf0e55d03e3d92a16afaad60f6 (patch)
treec4415f5a21b0d14c49ac02dcc9155e47f431236c /pcr/searx/searx.install
parentbccdc9c369893631bce0d150b09997b5dccbb232 (diff)
downloadabslibre-76741076e79d23bf0e55d03e3d92a16afaad60f6.tar.gz
abslibre-76741076e79d23bf0e55d03e3d92a16afaad60f6.tar.bz2
abslibre-76741076e79d23bf0e55d03e3d92a16afaad60f6.zip
searx: fix wrong location
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/searx/searx.install')
-rw-r--r--pcr/searx/searx.install13
1 files changed, 13 insertions, 0 deletions
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
+}
+