blob: 2be92d2d317af1b37f817f3f1269e018ef2c70ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Description: Fix shebang hack to not depend on bash.
diff -Naurp netdata.orig/collectors/node.d.plugin/node.d.plugin netdata/collectors/node.d.plugin/node.d.plugin
--- netdata.orig/collectors/node.d.plugin/node.d.plugin
+++ netdata/collectors/node.d.plugin/node.d.plugin
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
':' //; exec "$(command -v nodejs || command -v node || echo "ERROR node IS NOT AVAILABLE IN THIS SYSTEM")" "$0" "$@"
// shebang hack from:
diff -Naurp netdata.orig/collectors/node.d.plugin/node.d.plugin.in netdata/collectors/node.d.plugin/node.d.plugin.in
--- netdata.orig/collectors/node.d.plugin/node.d.plugin.in
+++ netdata/collectors/node.d.plugin/node.d.plugin.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
':' //; exec "$(command -v nodejs || command -v node || echo "ERROR node IS NOT AVAILABLE IN THIS SYSTEM")" "$0" "$@"
// shebang hack from:
|