*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Verified Commit b375c64e authored by Tsepelakis, Sotirios's avatar Tsepelakis, Sotirios :dart:
Browse files

Minor fix in SMTP script

Use docker compose exec in conjunction with curl
parent 67edcb08
No related branches found
No related tags found
1 merge request!7Minor fix in SMTP script
...@@ -33,7 +33,11 @@ username=$(grep -E "^OPENSEARCH_ADMIN_USERNAME=" .env | cut -d '=' -f 2- || echo ...@@ -33,7 +33,11 @@ username=$(grep -E "^OPENSEARCH_ADMIN_USERNAME=" .env | cut -d '=' -f 2- || echo
password=$(grep -E "^OPENSEARCH_ADMIN_PASSWORD=" .env | cut -d '=' -f 2- || echo "admin") password=$(grep -E "^OPENSEARCH_ADMIN_PASSWORD=" .env | cut -d '=' -f 2- || echo "admin")
# reload settings for changes to take effect # reload settings for changes to take effect
response=$(curl -s -u "${username}:${password}" -w "\n%{http_code}" -X POST https://localhost:9200/_nodes/reload_secure_settings --cacert ./ssl/root-ca-crt.pem) response=$(docker compose exec os-node-1 curl -s \
-u "${username}:${password}" \
-w "\n%{http_code}" \
-X POST https://localhost:9200/_nodes/reload_secure_settings \
--cacert /usr/share/opensearch/config/root-ca.pem)
# separate response message and HTTP status code # separate response message and HTTP status code
response_message=$(echo "$response" | sed '$d') response_message=$(echo "$response" | sed '$d')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment