Skip to content
Snippets Groups Projects
Commit b1331140 authored by Bob Mottram's avatar Bob Mottram
Browse files

Set base url even if upgrade is not happening

parent 81ba0818
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,6 @@ function change_system_local_name {
if grep -q "host-name=$NEW_SYSTEM_NAME" /etc/avahi/avahi-daemon.conf; then
install_web_admin
systemctl restart webadmin
systemctl restart searx
if [ "$NEW_SYSTEM_NAME_INTERACTIVE" ]; then
dialog --title $"New local network name" \
--msgbox $"The name of this system on your local network was changed successfully" 6 70
......
......@@ -608,6 +608,8 @@ function create_searx_config {
function webadmin_upgrade_search {
CURR_SEARX_COMMIT=$(grep "SEARX_COMMIT=" "$rootdir$CONFIGURATION_FILE" | head -n 1 | awk -F '=' '{print $2}')
if [[ "$CURR_SEARX_COMMIT" == "$SEARX_COMMIT" ]]; then
searx_set_base_url
systemctl restart searx
return
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment