summaryrefslogtreecommitdiff
path: root/utils/searx.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-10-30 16:06:14 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-10-30 16:11:01 +0200
commitdb6a4d13e7ebe08a5df4fe6f99b0ef87aac94cc8 (patch)
tree3a30a52b571a663adefdaf33e48a41654b44be32 /utils/searx.sh
parent4167bf15dce6c1892b25da411f9004c2703ea19c (diff)
downloadsearxng-db6a4d13e7ebe08a5df4fe6f99b0ef87aac94cc8.tar.gz
searxng-db6a4d13e7ebe08a5df4fe6f99b0ef87aac94cc8.zip
[mod] searx, filtron & morty scripts: add 'reinstall all' command
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-xutils/searx.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/searx.sh b/utils/searx.sh
index 3528f1da2..79cd2f26d 100755
--- a/utils/searx.sh
+++ b/utils/searx.sh
@@ -142,6 +142,7 @@ usage() {
usage::
$(basename "$0") shell
$(basename "$0") install [all|check|init-src|dot-config|user|searx-src|pyenv|uwsgi|packages|settings|buildhost]
+ $(basename "$0") reinstall all
$(basename "$0") update [searx]
$(basename "$0") remove [all|user|pyenv|searx-src]
$(basename "$0") activate [service]
@@ -165,6 +166,8 @@ install / remove
:buildhost: install packages from OS package manager needed by buildhosts
install
:check: check the SearXNG installation
+reinstall:
+ :all: runs 'install/remove all'
update searx
Update SearXNG installation ($SERVICE_HOME)
activate service
@@ -214,6 +217,16 @@ main() {
;;
*) usage "$_usage"; exit 42;;
esac ;;
+ reinstall)
+ rst_title "re-install $SERVICE_NAME" part
+ sudo_or_exit
+ case $2 in
+ all)
+ remove_all
+ install_all
+ ;;
+ *) usage "$_usage"; exit 42;;
+ esac ;;
install)
sudo_or_exit
case $2 in
@@ -385,6 +398,7 @@ install_check() {
if uWSGI_app_available 'searx.ini'; then
warn_msg "old searx.ini uWSGI app exists"
+ warn_msg "you need to reinstall $SERVICE_USER --> $0 reinstall all"
fi
}