Searxng gets updated very frequently, sometimes several times a day. Manually updating it can be tiring and cumbersome. This script below can automatically update searxng. Then in crontab, set it to run the update script every 6 hours.
Create a new file named updateSearxng.sh, and put the following content in it.
#!/bin/bash
# update searxng
cd /usr/local/searxng/searxng-src/
# Use echo command and pipe to auto input 2 and enter
echo "2" | sudo -H ./utils/searxng.sh instance update
# override searxng.png logo
cd /usr/local/searxng/searxng-src/searx/static/themes/simple/img
cp 3.png searxng.png
run chmod +x updateSearxng.sh
to change the permission
run crontab -e
and add the line 0 */6 * * * /root/updateSearxng.sh
.
The bash script will run every 6 hours.