summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/patches/debian/0003-use-python3.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/patches/debian/0003-use-python3.patch b/debian/patches/debian/0003-use-python3.patch
index be166f10f..be2f05b94 100644
--- a/debian/patches/debian/0003-use-python3.patch
+++ b/debian/patches/debian/0003-use-python3.patch
@@ -4,7 +4,7 @@ Description: Debian uses by default python 2 instead of python3.
diff -Naurp netdata.orig/src/collectors/python.d.plugin/python.d.plugin.in netdata/src/collectors/python.d.plugin/python.d.plugin.in
--- netdata.orig/src/collectors/python.d.plugin/python.d.plugin.in
+++ netdata/src/collectors/python.d.plugin/python.d.plugin.in
-@@ -1,21 +1,4 @@
+@@ -1,22 +1,4 @@
-#!/usr/bin/env bash
-'''':;
-pybinary=$(which python3 || which python || which python2)
@@ -19,7 +19,8 @@ diff -Naurp netdata.orig/src/collectors/python.d.plugin/python.d.plugin.in netda
-done
-if [ "$pybinary" = "" ]
-then
-- echo "ERROR python IS NOT AVAILABLE IN THIS SYSTEM"
+- echo 1>&2 "python.d ERROR: python is not installed on this system"
+- echo "EXIT"
- exit 1
-fi
-exec "$pybinary" "$0" "${filtered[@]}" # '''