Fix verifier

This commit is contained in:
2025-09-26 07:08:32 +02:00
parent cacaa66c5c
commit 30871760b9
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ UpdateFilebeatConfig() {
if grep -q "username: \"$user\"" "$temp_file" && \
grep -q "password: \"$password\"" "$temp_file" && \
grep -q "hosts: [\"$host\"]" "$temp_file"; then
grep -q "hosts: \[\"$host\"\]" "$temp_file"; then
mv "$temp_file" "$config_file"
LogInformation "Updated Elasticsearch settings: user=$user"
else
+1 -1
View File
@@ -56,7 +56,7 @@ UpdateOutputConfig() {
if grep -q "user => \"$user\"" "$temp_file" && \
grep -q "password => \"$password\"" "$temp_file" && \
grep -q "hosts => [\"$host\"]" "$temp_file"; then
grep -q "hosts => \[\"$host\"\]" "$temp_file"; then
mv "$temp_file" "$output_file"
LogInformation "Updated Elasticsearch settings: user=$user"
else
+1 -1
View File
@@ -56,7 +56,7 @@ UpdateMetricbeatConfig() {
if grep -q "username: \"$user\"" "$temp_file" && \
grep -q "password: \"$password\"" "$temp_file" && \
grep -q "hosts: [\"$host\"]" "$temp_file"; then
grep -q "hosts: \[\"$host\"\]" "$temp_file"; then
mv "$temp_file" "$config_file"
LogInformation "Updated Elasticsearch settings: user=$user"
else