summaryrefslogtreecommitdiffstats
path: root/debian/patches/0004-readd-shebang-to-chart-scripts.patch
blob: 54b1c969b6f7b4c912cb15a8a7a1471b627ff387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
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" ]