diff --git a/src/freedombone-app-searx b/src/freedombone-app-searx index 6499d582..070aaa2d 100755 --- a/src/freedombone-app-searx +++ b/src/freedombone-app-searx @@ -1011,7 +1011,6 @@ function install_searx { systemctl daemon-reload systemctl start searx.service - DEFAULT_SEARCH="http://$SEARX_ONION_HOSTNAME" update_default_search_engine SEARX_PASSWORD="$(create_password ${MINIMUM_PASSWORD_LENGTH})" diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index a63dda38..2376ee9d 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -535,6 +535,10 @@ function install_dynamicdns { } function update_default_search_engine { + if [ -f /var/lib/tor/hidden_service_searx/hostname ]; then + DEFAULT_SEARCH="http://$(cat /var/lib/tor/hidden_service_searx/hostname)" + fi + for d in /home/*/ ; do USERNAME=$(echo "$d" | awk -F '/' '{print $3}') if [[ $(is_valid_user "$USERNAME") == "1" ]]; then