mirror of
https://github.com/searxng/searxng.git
synced 2025-07-23 13:19:17 +02:00
[mod] searx, filtron & morty scripts: add 'reinstall all' command
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
4167bf15dc
commit
db6a4d13e7
3 changed files with 44 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue