updated shebang for compatibility
Costa Tsaousis (ktsaou) committed
Jul 14, 2016 at 22:15 UTC
3824a699715d85e0adf61570a4569d09922c7f5c
22 files changed
+29
-24
charts.d/ap.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# _update_every is a special variable - it holds the number of seconds
4
# between the calls of the _update() function
charts.d/apache.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# the URL to download apache status info
4
apache_url="http://127.0.0.1:80/server-status?auto"
charts.d/cpu_apps.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# THIS PLUGIN IS OBSOLETE
4
# USE apps.plugin INSTEAD
charts.d/cpufreq.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# if this chart is called X.chart.sh, then all functions and global variables
4
# must start with X_
charts.d/exim.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
exim_command=
4
charts.d/hddtemp.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# if this chart is called X.chart.sh, then all functions and global variables
4
# must start with X_
charts.d/load_average.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
load_average_update_every=5
4
load_priority=100
charts.d/mem_apps.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
mem_apps_apps=
4
charts.d/mysql.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# http://dev.mysql.com/doc/refman/5.0/en/server-status-variables.html
4
#
charts.d/nginx.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# if this chart is called X.chart.sh, then all functions and global variables
4
# must start with X_
charts.d/nut.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# a space separated list of UPS names
4
# if empty, the list returned by 'upsc -l' will be used
charts.d/opensips.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
opensips_opts="fifo get_statistics all"
4
opensips_cmd=
charts.d/phpfpm.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# if this chart is called X.chart.sh, then all functions and global variables
4
# must start with X_
charts.d/postfix.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# the postqueue command
4
# if empty, it will use the one found in the system path
charts.d/sensors.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# sensors docs
4
# https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface
charts.d/squid.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
squid_host=
4
squid_port=
charts.d/tomcat.chart.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+# no need for shebang - this file is loaded from charts.d.plugin
2
3
# Description: Tomcat netdata charts.d plugin
4
# Author: Jorge Romero
plugins.d/cgroup-name.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/usr/bin/env bash
2
3
export PATH="${PATH}:/sbin:/usr/sbin:/usr/local/sbin"
4
export LC_ALL=C
plugins.d/charts.d.dryrun-helper.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+#!/usr/bin/env bash
2
3
# will stop the script for any error
4
set -e
plugins.d/node.d.plugin
+8
-3
@@ -1,4 +1,4 @@
1
-#!/bin/sh
1
+#!/usr/bin/env bash
2
':' //; exec "$(command -v nodejs || command -v node || command -v js || echo "ERROR node.js IS NOT AVAILABLE IN THIS SYSTEM")" "$0" "$@"
3
4
// shebang hack from:
@@ -42,12 +42,17 @@ var netdata = require('netdata');
42
function pluginConfig(filename) {
43
var f = path.basename(filename);
44
45
+ // node.d.plugin configuration
46
var m = f.match('.plugin' + '$');
46
- if(m === null) m = f.match('.node.js' + '$');
47
if(m !== null)
48
return netdata.options.paths.config + '/' + f.substring(0, m.index) + '.conf';
49
50
- return netdata.options.paths.config + '/' + f + '.conf';
50
+ // node.d modules configuration
51
+ m = f.match('.node.js' + '$');
52
+ if(m !== null)
53
+ return netdata.options.paths.config + '/node.d/' + f.substring(0, m.index) + '.conf';
54
+
55
+ return netdata.options.paths.config + '/node.d/' + f + '.conf';
56
}
57
58
// internal defaults
plugins.d/tc-qos-helper.sh
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/usr/bin/env bash
2
3
export PATH="${PATH}:/sbin:/usr/sbin:/usr/local/sbin"
4
python.d/python-modules-installer.sh.in
+1
-1
@@ -1,4 +1,4 @@
1
-#!/bin/bash
1
+#!/usr/bin/env bash
2
3
umask 022
4