Skip to content

Commit

Permalink
update.sh: added silent fix for removing old fts.conf in order to upd…
Browse files Browse the repository at this point in the history
…ate properly
  • Loading branch information
DerLinkman committed Dec 12, 2024
1 parent 3e8bb06 commit de80c12
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ##############
Expand Down

0 comments on commit de80c12

Please sign in to comment.