diff options
Diffstat (limited to 'admin/netdata/patches/002-force-python3.patch')
| -rw-r--r-- | admin/netdata/patches/002-force-python3.patch | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/admin/netdata/patches/002-force-python3.patch b/admin/netdata/patches/002-force-python3.patch index 756b4d7ec..84d19259d 100644 --- a/admin/netdata/patches/002-force-python3.patch +++ b/admin/netdata/patches/002-force-python3.patch @@ -1,10 +1,14 @@ --- a/collectors/python.d.plugin/python.d.plugin.in +++ b/collectors/python.d.plugin/python.d.plugin.in -@@ -1,6 +1,4 @@ +@@ -1,10 +1,4 @@ -#!/usr/bin/env bash --'''':; exec "$(command -v python || command -v python3 || command -v python2 || +-'''':; +-if [[ "$OSTYPE" == "darwin"* ]]; then +- export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES +-fi +-exec "$(command -v python || command -v python3 || command -v python2 || -echo "ERROR python IS NOT AVAILABLE IN THIS SYSTEM")" "$0" "$@" # ''' +#!/usr/bin/python3 - + # -*- coding: utf-8 -*- # Description: |
