mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-07-25 02:59:22 +00:00
fix: disabled api call to solr in ui when mailbox deleted but using flatcurve
This commit is contained in:
parent
8b933f1967
commit
294a406b91
2 changed files with 2 additions and 1 deletions
|
|
@ -5212,7 +5212,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
|||
'msg' => 'Could not move maildir to garbage collector: variables local_part and/or domain empty'
|
||||
);
|
||||
}
|
||||
if (strtolower(getenv('SKIP_SOLR')) == 'n') {
|
||||
if (strtolower(getenv('SKIP_SOLR')) == 'n' && strtolower(getenv('FLATCURVE_EXPERIMENTAL')) != 'y') {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, 'http://solr:8983/solr/dovecot-fts/update?commit=true');
|
||||
curl_setopt($curl, CURLOPT_HTTPHEADER,array('Content-Type: text/xml'));
|
||||
|
|
|
|||
|
|
@ -168,6 +168,7 @@ services:
|
|||
- DEMO_MODE=${DEMO_MODE:-n}
|
||||
- WEBAUTHN_ONLY_TRUSTED_VENDORS=${WEBAUTHN_ONLY_TRUSTED_VENDORS:-n}
|
||||
- CLUSTERMODE=${CLUSTERMODE:-}
|
||||
- FLATCURVE_EXPERIMENTAL=${FLATCURVE_EXPERIMENTAL:-}
|
||||
restart: always
|
||||
networks:
|
||||
mailcow-network:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue