diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-12-28 16:53:26 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-03 14:34:26 +0100 |
commit | fe8b88c8a4385a3454604143bc7ed4162f713251 (patch) | |
tree | 49c703ab2de3caa1804adc82e0c220e8121534af /manage | |
parent | a3332cd55055db7c568965571c08de73fb6b9adc (diff) | |
download | searxng-fe8b88c8a4385a3454604143bc7ed4162f713251.tar.gz searxng-fe8b88c8a4385a3454604143bc7ed4162f713251.zip |
[mod] script to build & install a redis instance
A script to build & install a simple & isolated redis service, dedicated to
SearXNG and connected via Unix socket.
$ ./manage redis.help
redis.:
devpkg : install essential packages to compile redis
build : build redis binaries at /800GBPCIex4/share/SearXNG/dist/redis/6.2.6/amd64
install : create user (searxng-redis) and install systemd service (searxng-redis)
remove : delete user (searxng-redis) and remove service (searxng-redis)
shell : start bash interpreter from user searxng-redis
src : clone redis source code to <path> and checkput 6.2.6
useradd : create user (searxng-redis) at /usr/local/searxng-redis
userdel : delete user (searxng-redis)
addgrp : add <user> to group (searxng-redis)
rmgrp : remove <user> from group (searxng-redis)
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-x | manage | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -17,6 +17,9 @@ source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_static.sh" # shellcheck source=utils/lib_go.sh source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_go.sh" +# shellcheck source=utils/lib_redis.sh +source "$(dirname "${BASH_SOURCE[0]}")/utils/lib_redis.sh" + # config PYOBJECTS="searx" @@ -74,9 +77,10 @@ docker.: gecko.driver: download & install geckodriver if not already installed (required for robot_tests) -EOF - nvm.help - cat <<EOF +redis: + build : build redis binaries at $(redis._get_dist) + install : create user (${REDIS_USER}) and install systemd service (${REDIS_SERVICE_NAME}) + help : show more redis commands node.: env : download & install npm dependencies locally clean : drop locally npm installations |