mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
collectd: remove extra newlines from the generated config
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
This commit is contained in:
committed by
Hannu Nyman
parent
fdd53a4c60
commit
a5d87390f2
@@ -236,11 +236,9 @@ process_generic() {
|
||||
|
||||
[ -z "$config" ] || {
|
||||
printf "%s<Plugin %s>\n" "${CONFIG_STRING}" "$cfg" >> "$COLLECTD_CONF"
|
||||
echo -e "${config}" >> "$COLLECTD_CONF"
|
||||
echo -n -e "${config}" >> "$COLLECTD_CONF"
|
||||
printf "%s</Plugin>\n" "${CONFIG_STRING}" >> "$COLLECTD_CONF"
|
||||
}
|
||||
|
||||
printf "\n" >> "$COLLECTD_CONF"
|
||||
}
|
||||
|
||||
process_plugins() {
|
||||
|
||||
Reference in New Issue
Block a user