Преглед на файлове

update.sh: added silent fix for removing old fts.conf in order to update properly

DerLinkman преди 10 месеца
родител
ревизия
de80c120c9
променени са 1 файла, в които са добавени 9 реда и са изтрити 1 реда
  1. 9 1
      update.sh

+ 9 - 1
update.sh

@@ -694,7 +694,15 @@ migrate_solr_config_options() {
       echo "Once you decided on removing the volume simply run docker volume rm $solr_volume to remove it manually."
       echo "Once you decided on removing the volume simply run docker volume rm $solr_volume to remove it manually."
       echo "This can be done anytime. mailcow does not use this volume anymore."
       echo "This can be done anytime. mailcow does not use this volume anymore."
     fi
     fi
-  fi  
+  fi
+
+  # Delete old fts.conf before forced switch to flatcurve to ensure update is working properly
+  FTS_CONF_PATH="data/conf/dovecot/conf.d/fts.conf"
+  if [[ -f "$FTS_CONF_PATH" ]]; then
+    if grep -q "Autogenerated by mailcow" "$FTS_CONF_PATH"; then
+      rm -rf $FTS_CONF_PATH
+    fi
+  fi
 }
 }
 
 
 ############## End Function Section ##############
 ############## End Function Section ##############