1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-23 02:04:46 +02:00

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

This commit is contained in:
DerLinkman 2024-12-12 16:57:32 +01:00
parent 3e8bb06a37
commit de80c120c9
No known key found for this signature in database
GPG Key ID: AA4A82514748F5A9

View File

@ -695,6 +695,14 @@ migrate_solr_config_options() {
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 ##############