Fix logstash replacement

This commit is contained in:
2025-09-26 07:03:22 +02:00
parent e507a454da
commit cacaa66c5c
+1 -1
View File
@@ -51,7 +51,7 @@ UpdateOutputConfig() {
sed -e "s/user => \"[^\"]*\"/user => \"$user\"/" \
-e "s/password => \"[^\"]*\"/password => \"$password\"/" \
-e "s/hosts => \[\"[^\"]*\"\]/hosts => [\"$host\"]/" \
-e "s|hosts => \[\"[^\"]*\"\]|hosts => [\"$host\"]|" \
"$output_file" > "$temp_file"
if grep -q "user => \"$user\"" "$temp_file" && \