mirror of
https://github.com/AlexMacocian/ServerManagementUtils.git
synced 2026-07-15 15:19:58 +00:00
Fix logstash replacement
This commit is contained in:
@@ -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" && \
|
||||
|
||||
Reference in New Issue
Block a user