diff options
Diffstat (limited to 'debian/patches/0004-readd-shebang-to-chart-scripts.patch')
-rw-r--r-- | debian/patches/0004-readd-shebang-to-chart-scripts.patch | 178 |
1 files changed, 178 insertions, 0 deletions
diff --git a/debian/patches/0004-readd-shebang-to-chart-scripts.patch b/debian/patches/0004-readd-shebang-to-chart-scripts.patch new file mode 100644 index 000000000..54b1c969b --- /dev/null +++ b/debian/patches/0004-readd-shebang-to-chart-scripts.patch @@ -0,0 +1,178 @@ +From: Lennart Weller <lhw@ring0.de> +Date: Mon, 5 Sep 2016 11:33:48 +0200 +Subject: re-add shebang to chart scripts + +--- + charts.d/ap.chart.sh | 2 +- + charts.d/apache.chart.sh | 2 +- + charts.d/cpu_apps.chart.sh | 2 +- + charts.d/cpufreq.chart.sh | 2 +- + charts.d/example.chart.sh | 2 +- + charts.d/exim.chart.sh | 2 +- + charts.d/hddtemp.chart.sh | 2 +- + charts.d/load_average.chart.sh | 2 +- + charts.d/mem_apps.chart.sh | 2 +- + charts.d/mysql.chart.sh | 2 +- + charts.d/nginx.chart.sh | 2 +- + charts.d/nut.chart.sh | 2 +- + charts.d/opensips.chart.sh | 2 +- + charts.d/phpfpm.chart.sh | 2 +- + charts.d/postfix.chart.sh | 2 +- + charts.d/sensors.chart.sh | 2 +- + charts.d/squid.chart.sh | 2 +- + charts.d/tomcat.chart.sh | 2 +- + plugins.d/loopsleepms.sh.inc | 2 +- + 19 files changed, 19 insertions(+), 19 deletions(-) + +--- a/charts.d/ap.chart.sh ++++ b/charts.d/ap.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # _update_every is a special variable - it holds the number of seconds + # between the calls of the _update() function +--- a/charts.d/apache.chart.sh ++++ b/charts.d/apache.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # the URL to download apache status info + apache_url="http://127.0.0.1:80/server-status?auto" +--- a/charts.d/cpu_apps.chart.sh ++++ b/charts.d/cpu_apps.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # THIS PLUGIN IS OBSOLETE + # USE apps.plugin INSTEAD +--- a/charts.d/cpufreq.chart.sh ++++ b/charts.d/cpufreq.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # if this chart is called X.chart.sh, then all functions and global variables + # must start with X_ +--- a/charts.d/example.chart.sh ++++ b/charts.d/example.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # if this chart is called X.chart.sh, then all functions and global variables + # must start with X_ +--- a/charts.d/exim.chart.sh ++++ b/charts.d/exim.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + exim_command= + +--- a/charts.d/hddtemp.chart.sh ++++ b/charts.d/hddtemp.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # if this chart is called X.chart.sh, then all functions and global variables + # must start with X_ +--- a/charts.d/load_average.chart.sh ++++ b/charts.d/load_average.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + load_average_update_every=5 + load_priority=100 +--- a/charts.d/mem_apps.chart.sh ++++ b/charts.d/mem_apps.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + mem_apps_apps= + +--- a/charts.d/mysql.chart.sh ++++ b/charts.d/mysql.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # http://dev.mysql.com/doc/refman/5.0/en/server-status-variables.html + # +--- a/charts.d/nginx.chart.sh ++++ b/charts.d/nginx.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # if this chart is called X.chart.sh, then all functions and global variables + # must start with X_ +--- a/charts.d/nut.chart.sh ++++ b/charts.d/nut.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # a space separated list of UPS names + # if empty, the list returned by 'upsc -l' will be used +--- a/charts.d/opensips.chart.sh ++++ b/charts.d/opensips.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + opensips_opts="fifo get_statistics all" + opensips_cmd= +--- a/charts.d/phpfpm.chart.sh ++++ b/charts.d/phpfpm.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # if this chart is called X.chart.sh, then all functions and global variables + # must start with X_ +--- a/charts.d/postfix.chart.sh ++++ b/charts.d/postfix.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # the postqueue command + # if empty, it will use the one found in the system path +--- a/charts.d/sensors.chart.sh ++++ b/charts.d/sensors.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # sensors docs + # https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface +--- a/charts.d/squid.chart.sh ++++ b/charts.d/squid.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + squid_host= + squid_port= +--- a/charts.d/tomcat.chart.sh ++++ b/charts.d/tomcat.chart.sh +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is loaded from charts.d.plugin ++#!/bin/bash + + # Description: Tomcat netdata charts.d plugin + # Author: Jorge Romero +--- a/plugins.d/loopsleepms.sh.inc ++++ b/plugins.d/loopsleepms.sh.inc +@@ -1,4 +1,4 @@ +-# no need for shebang - this file is included from other scripts ++#!/bin/bash + + LOOPSLEEP_DATE="$(which date)" + if [ -z "$LOOPSLEEP_DATE" ] |