Use searx as default search for users

This commit is contained in:
Bob Mottram 2017-09-23 12:21:38 +01:00
parent 391edfe243
commit d7abf4dc06
1 changed files with 3 additions and 0 deletions

View File

@ -1011,6 +1011,9 @@ function install_searx {
systemctl daemon-reload systemctl daemon-reload
systemctl start searx.service systemctl start searx.service
DEFAULT_SEARCH="http://$SEARX_ONION_HOSTNAME"
update_default_search_engine
SEARX_PASSWORD="$(create_password ${MINIMUM_PASSWORD_LENGTH})" SEARX_PASSWORD="$(create_password ${MINIMUM_PASSWORD_LENGTH})"
${PROJECT_NAME}-pass -u $MY_USERNAME -a searx -p "$SEARX_PASSWORD" ${PROJECT_NAME}-pass -u $MY_USERNAME -a searx -p "$SEARX_PASSWORD"
if grep -q "$MY_USERNAME:" /etc/nginx/.htpasswd; then if grep -q "$MY_USERNAME:" /etc/nginx/.htpasswd; then