Skip to content

Commit de80c12

Browse files
committed
update.sh: added silent fix for removing old fts.conf in order to update properly
1 parent 3e8bb06 commit de80c12

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

update.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,15 @@ migrate_solr_config_options() {
694694
echo "Once you decided on removing the volume simply run docker volume rm $solr_volume to remove it manually."
695695
echo "This can be done anytime. mailcow does not use this volume anymore."
696696
fi
697-
fi
697+
fi
698+
699+
# Delete old fts.conf before forced switch to flatcurve to ensure update is working properly
700+
FTS_CONF_PATH="data/conf/dovecot/conf.d/fts.conf"
701+
if [[ -f "$FTS_CONF_PATH" ]]; then
702+
if grep -q "Autogenerated by mailcow" "$FTS_CONF_PATH"; then
703+
rm -rf $FTS_CONF_PATH
704+
fi
705+
fi
698706
}
699707

700708
############## End Function Section ##############

0 commit comments

Comments
 (0)