mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-03 18:35:55 +00:00
Fix/make searxng updateable (#12207)
* Made update script useable * Added info messages * Use $STD prefix for all update commands * Update ct/searxng.sh Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> * Update searxng.sh --------- Co-authored-by: Stefan Tomas <stefan.tomas@proton.me> Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
This commit is contained in:
@@ -27,12 +27,33 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
msg_ok "There is currently no update available."
|
|
||||||
# sed -i 's/^\([[:space:]]*limiter:\)[[:space:]]*true/\1 false/' /etc/searxng/settings.yml
|
chown -R searxng:searxng /usr/local/searxng/searxng-src
|
||||||
# if cd /usr/local/searxng/searxng-src && git pull | grep -q 'Already up to date'; then
|
if su -s /bin/bash -c "git -C /usr/local/searxng/searxng-src pull" searxng | grep -q 'Already up to date'; then
|
||||||
# msg_ok "There is currently no update available."
|
msg_ok "There is currently no update available."
|
||||||
# fi
|
exit
|
||||||
exit
|
fi
|
||||||
|
|
||||||
|
msg_info "Updating SearXNG installation"
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop searxng
|
||||||
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
msg_info "Updating SearXNG"
|
||||||
|
$STD su -s /bin/bash searxng -c '
|
||||||
|
python3 -m venv /usr/local/searxng/searx-pyenv &&
|
||||||
|
. /usr/local/searxng/searx-pyenv/bin/activate &&
|
||||||
|
pip install -U pip setuptools wheel pyyaml lxml msgspec typing_extensions &&
|
||||||
|
pip install --use-pep517 --no-build-isolation -e /usr/local/searxng/searxng-src
|
||||||
|
'
|
||||||
|
msg_ok "Updated SearXNG"
|
||||||
|
|
||||||
|
msg_info "Starting Services"
|
||||||
|
systemctl start searxng
|
||||||
|
msg_ok "Started Services"
|
||||||
|
msg_ok "Updated successfully!"
|
||||||
|
fi
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
start
|
start
|
||||||
build_container
|
build_container
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
],
|
],
|
||||||
"date_created": "2025-08-26",
|
"date_created": "2025-08-26",
|
||||||
"type": "ct",
|
"type": "ct",
|
||||||
"updateable": false,
|
"updateable": true,
|
||||||
"privileged": false,
|
"privileged": false,
|
||||||
"interface_port": 8888,
|
"interface_port": 8888,
|
||||||
"documentation": "https://docs.searxng.org/",
|
"documentation": "https://docs.searxng.org/",
|
||||||
|
|||||||
Reference in New Issue
Block a user