From de80c120c9cd4f41b75ba21ce3ad58a999fc6ea2 Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Thu, 12 Dec 2024 16:57:32 +0100 Subject: [PATCH] update.sh: added silent fix for removing old fts.conf in order to update properly --- update.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index d488c4784..6d9f8dd7e 100755 --- a/update.sh +++ b/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 "This can be done anytime. mailcow does not use this volume anymore." 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 ##############