collectd: fix the wrong var name
authorMaxim Storchak <m.storchak@gmail.com>
Tue, 5 Jan 2021 20:32:40 +0000 (22:32 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 10 Jan 2021 08:22:54 +0000 (10:22 +0200)
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
utils/collectd/files/collectd.init

index 89fc6b2bbeb542ea8fad174256c0d0aa408cc3ac..e585f7b058c25cf4bbc82336ffe1ca55beec889f 100644 (file)
@@ -98,7 +98,7 @@ process_network() {
        }
 
        config_get_bool Forward "$cfg" Forward
-       if [ "$value" = "0" ]; then
+       if [ "$Forward" = "0" ]; then
                printf "\\tForward false\n" >> "$COLLECTD_CONF"
        else
                printf "\\tForward true\n" >> "$COLLECTD_CONF"