fix: disabled api call to solr in ui when mailbox deleted but using flatcurve
This commit is contained in:
parent
8b933f1967
commit
294a406b91
@ -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'
|
'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 = curl_init();
|
||||||
curl_setopt($curl, CURLOPT_URL, 'http://solr:8983/solr/dovecot-fts/update?commit=true');
|
curl_setopt($curl, CURLOPT_URL, 'http://solr:8983/solr/dovecot-fts/update?commit=true');
|
||||||
curl_setopt($curl, CURLOPT_HTTPHEADER,array('Content-Type: text/xml'));
|
curl_setopt($curl, CURLOPT_HTTPHEADER,array('Content-Type: text/xml'));
|
||||||
|
@ -168,6 +168,7 @@ services:
|
|||||||
- DEMO_MODE=${DEMO_MODE:-n}
|
- DEMO_MODE=${DEMO_MODE:-n}
|
||||||
- WEBAUTHN_ONLY_TRUSTED_VENDORS=${WEBAUTHN_ONLY_TRUSTED_VENDORS:-n}
|
- WEBAUTHN_ONLY_TRUSTED_VENDORS=${WEBAUTHN_ONLY_TRUSTED_VENDORS:-n}
|
||||||
- CLUSTERMODE=${CLUSTERMODE:-}
|
- CLUSTERMODE=${CLUSTERMODE:-}
|
||||||
|
- FLATCURVE_EXPERIMENTAL=${FLATCURVE_EXPERIMENTAL:-}
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
mailcow-network:
|
mailcow-network:
|
||||||
|
Loading…
Reference in New Issue
Block a user