Fix shebang according to
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_shebang_lines
diff -rup a/claim/netdata-claim.sh.in b/claim/netdata-claim.sh.in
--- a/claim/netdata-claim.sh.in 2022-11-30 13:36:48.322052491 +0100
+++ b/claim/netdata-claim.sh.in 2022-12-02 19:09:02.003143386 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# netdata
# real-time performance and health monitoring, done right!
# (C) 2017 Costa Tsaousis <costa@tsaousis.gr>
diff -rup a/collectors/cgroups.plugin/cgroup-name.sh b/collectors/cgroups.plugin/cgroup-name.sh
--- a/collectors/cgroups.plugin/cgroup-name.sh 2022-11-30 13:36:48.322052491 +0100
+++ b/collectors/cgroups.plugin/cgroup-name.sh 2022-12-02 19:09:02.006143400 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
#shellcheck disable=SC2001
# netdata
diff -rup a/collectors/cgroups.plugin/cgroup-network-helper.sh b/collectors/cgroups.plugin/cgroup-network-helper.sh
--- a/collectors/cgroups.plugin/cgroup-network-helper.sh 2022-11-30 13:36:48.322052491 +0100
+++ b/collectors/cgroups.plugin/cgroup-network-helper.sh 2022-12-02 19:09:02.008143410 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# shellcheck disable=SC1117
# cgroup-network-helper.sh
diff -rup a/collectors/charts.d.plugin/charts.d.dryrun-helper.sh b/collectors/charts.d.plugin/charts.d.dryrun-helper.sh
--- a/collectors/charts.d.plugin/charts.d.dryrun-helper.sh 2022-11-30 13:36:48.322052491 +0100
+++ b/collectors/charts.d.plugin/charts.d.dryrun-helper.sh 2022-12-02 19:09:02.015143442 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# shellcheck disable=SC2181
diff -rup a/collectors/charts.d.plugin/charts.d.plugin b/collectors/charts.d.plugin/charts.d.plugin
--- a/collectors/charts.d.plugin/charts.d.plugin 2022-11-30 13:37:39.815580278 +0100
+++ b/collectors/charts.d.plugin/charts.d.plugin 2022-12-02 19:09:02.013143433 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# netdata
diff -rup a/collectors/charts.d.plugin/charts.d.plugin.in b/collectors/charts.d.plugin/charts.d.plugin.in
--- a/collectors/charts.d.plugin/charts.d.plugin.in 2022-11-30 13:36:48.322052491 +0100
+++ b/collectors/charts.d.plugin/charts.d.plugin.in 2022-12-02 19:09:02.010143419 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# netdata
diff -rup a/collectors/fping.plugin/fping.plugin b/collectors/fping.plugin/fping.plugin
--- a/collectors/fping.plugin/fping.plugin 2022-11-30 13:37:39.927583599 +0100
+++ b/collectors/fping.plugin/fping.plugin 2022-12-02 19:09:02.033143526 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# netdata
diff -rup a/collectors/fping.plugin/fping.plugin.in b/collectors/fping.plugin/fping.plugin.in
--- a/collectors/fping.plugin/fping.plugin.in 2022-11-30 13:36:48.330052728 +0100
+++ b/collectors/fping.plugin/fping.plugin.in 2022-12-02 19:09:02.031143516 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# netdata
diff -rup a/collectors/ioping.plugin/ioping.plugin b/collectors/ioping.plugin/ioping.plugin
--- a/collectors/ioping.plugin/ioping.plugin 2022-11-30 13:37:39.955584429 +0100
+++ b/collectors/ioping.plugin/ioping.plugin 2022-12-02 19:09:02.021143470 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# netdata
diff -rup a/collectors/ioping.plugin/ioping.plugin.in b/collectors/ioping.plugin/ioping.plugin.in
--- a/collectors/ioping.plugin/ioping.plugin.in 2022-11-30 13:36:48.330052728 +0100
+++ b/collectors/ioping.plugin/ioping.plugin.in 2022-12-02 19:09:02.024143484 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# netdata
diff -rup a/collectors/python.d.plugin/python.d.plugin b/collectors/python.d.plugin/python.d.plugin
--- a/collectors/python.d.plugin/python.d.plugin 2022-11-30 13:37:40.139589884 +0100
+++ b/collectors/python.d.plugin/python.d.plugin 2022-12-02 19:09:02.019143461 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
'''':;
pybinary=$(which python3 || which python || which python2)
filtered=()
diff -rup a/collectors/python.d.plugin/python.d.plugin.in b/collectors/python.d.plugin/python.d.plugin.in
--- a/collectors/python.d.plugin/python.d.plugin.in 2022-11-30 13:36:48.346053202 +0100
+++ b/collectors/python.d.plugin/python.d.plugin.in 2022-12-02 19:09:02.017143451 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
'''':;
pybinary=$(which python3 || which python || which python2)
filtered=()
diff -rup a/collectors/python.d.plugin/python_modules/third_party/boinc_client.py b/collectors/python.d.plugin/python_modules/third_party/boinc_client.py
--- a/collectors/python.d.plugin/python_modules/third_party/boinc_client.py 2022-11-30 13:36:48.346053202 +0100
+++ b/collectors/python.d.plugin/python_modules/third_party/boinc_client.py 2022-12-02 19:09:02.179144203 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#
# -*- coding: utf-8 -*-
#
# client.py - Somewhat higher-level GUI_RPC API for BOINC core client
diff -rup a/collectors/tc.plugin/tc-qos-helper.sh b/collectors/tc.plugin/tc-qos-helper.sh
--- a/collectors/tc.plugin/tc-qos-helper.sh 2022-11-30 13:37:40.511600912 +0100
+++ b/collectors/tc.plugin/tc-qos-helper.sh 2022-12-02 19:09:02.027143498 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# netdata
# real-time performance and health monitoring, done right!
diff -rup a/collectors/tc.plugin/tc-qos-helper.sh.in b/collectors/tc.plugin/tc-qos-helper.sh.in
--- a/collectors/tc.plugin/tc-qos-helper.sh.in 2022-11-30 13:36:48.354053440 +0100
+++ b/collectors/tc.plugin/tc-qos-helper.sh.in 2022-12-02 19:09:02.029143507 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# netdata
# real-time performance and health monitoring, done right!
diff -rup a/contrib/debian/install_go.sh b/contrib/debian/install_go.sh
--- a/contrib/debian/install_go.sh 2022-11-30 13:36:48.354053440 +0100
+++ b/contrib/debian/install_go.sh 2022-12-02 19:09:02.035143535 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
GO_PACKAGE_VERSION="$1"
LIB_DIR="$2"
diff -rup a/contrib/rhel/build-netdata-rpm.sh b/contrib/rhel/build-netdata-rpm.sh
--- a/contrib/rhel/build-netdata-rpm.sh 2022-11-30 13:36:48.354053440 +0100
+++ b/contrib/rhel/build-netdata-rpm.sh 2022-12-02 19:09:02.037143544 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# docker run -it --rm centos:6.9 /bin/sh
# yum -y install rpm-build redhat-rpm-config yum-utils autoconf automake curl gcc git libmnl-devel libuuid-devel make pkgconfig zlib-devel
diff -rup a/coverity-scan.sh b/coverity-scan.sh
--- a/coverity-scan.sh 2022-11-30 13:36:48.354053440 +0100
+++ b/coverity-scan.sh 2022-12-02 19:09:02.039143553 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
#
# Coverity scan script
#
diff -rup a/cppcheck.sh b/cppcheck.sh
--- a/cppcheck.sh 2022-11-30 13:36:48.354053440 +0100
+++ b/cppcheck.sh 2022-12-02 19:09:02.041143563 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# echo >>/tmp/cppcheck.log "cppcheck ${*}"
diff -rup a/daemon/anonymous-statistics.sh b/daemon/anonymous-statistics.sh
--- a/daemon/anonymous-statistics.sh 2022-11-30 13:37:40.539601742 +0100
+++ b/daemon/anonymous-statistics.sh 2022-12-02 19:09:02.076143725 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/usr/bin/sh
# Valid actions:
diff -rup a/daemon/anonymous-statistics.sh.in b/daemon/anonymous-statistics.sh.in
--- a/daemon/anonymous-statistics.sh.in 2022-11-30 13:36:48.358053558 +0100
+++ b/daemon/anonymous-statistics.sh.in 2022-12-02 19:09:02.073143711 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/usr/bin/sh
# Valid actions:
diff -rup a/daemon/get-kubernetes-labels.sh b/daemon/get-kubernetes-labels.sh
--- a/daemon/get-kubernetes-labels.sh 2022-11-30 13:37:40.543601861 +0100
+++ b/daemon/get-kubernetes-labels.sh 2022-12-02 19:09:02.043143572 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
me="$(basename "${0}")"
# Checks if netdata is running in a kubernetes pod and fetches:
diff -rup a/daemon/get-kubernetes-labels.sh.in b/daemon/get-kubernetes-labels.sh.in
--- a/daemon/get-kubernetes-labels.sh.in 2022-11-30 13:36:48.358053558 +0100
+++ b/daemon/get-kubernetes-labels.sh.in 2022-12-02 19:09:02.045143581 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
me="$(basename "${0}")"
# Checks if netdata is running in a kubernetes pod and fetches:
diff -rup a/daemon/system-info.sh b/daemon/system-info.sh
--- a/daemon/system-info.sh 2022-11-30 13:36:48.358053558 +0100
+++ b/daemon/system-info.sh 2022-12-02 19:09:02.071143702 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/usr/bin/sh
# -------------------------------------------------------------------------------------------------
# detect the kernel
diff -rup a/diagrams/build.sh b/diagrams/build.sh
--- a/diagrams/build.sh 2022-11-30 13:36:48.398054744 +0100
+++ b/diagrams/build.sh 2022-12-02 19:09:02.047143591 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
path=$(dirname "$0")
diff -rup a/exporting/nc-exporting.sh b/exporting/nc-exporting.sh
--- a/exporting/nc-exporting.sh 2022-11-30 13:36:48.410055100 +0100
+++ b/exporting/nc-exporting.sh 2022-12-02 19:09:02.049143600 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
diff -rup a/health/notifications/alarm-email.sh b/health/notifications/alarm-email.sh
--- a/health/notifications/alarm-email.sh 2022-11-30 13:36:48.414055219 +0100
+++ b/health/notifications/alarm-email.sh 2022-12-02 19:09:02.059143646 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# OBSOLETE - REPLACED WITH
diff -rup a/health/notifications/alarm-notify.sh b/health/notifications/alarm-notify.sh
--- a/health/notifications/alarm-notify.sh 2022-11-30 13:37:40.939613600 +0100
+++ b/health/notifications/alarm-notify.sh 2022-12-02 19:09:02.055143628 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
#shellcheck source=/dev/null disable=SC2086,SC2154
# netdata
diff -rup a/health/notifications/alarm-notify.sh.in b/health/notifications/alarm-notify.sh.in
--- a/health/notifications/alarm-notify.sh.in 2022-11-30 13:36:48.414055219 +0100
+++ b/health/notifications/alarm-notify.sh.in 2022-12-02 19:09:02.052143614 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
#shellcheck source=/dev/null disable=SC2086,SC2154
# netdata
diff -rup a/health/notifications/alarm-test.sh b/health/notifications/alarm-test.sh
--- a/health/notifications/alarm-test.sh 2022-11-30 13:36:48.414055219 +0100
+++ b/health/notifications/alarm-test.sh 2022-12-02 19:09:02.057143637 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# netdata
# real-time performance and health monitoring, done right!
diff -rup a/ml/dlib/dlib/external/pybind11/tools/mkdoc.py b/ml/dlib/dlib/external/pybind11/tools/mkdoc.py
--- a/ml/dlib/dlib/external/pybind11/tools/mkdoc.py 2022-11-30 13:36:56.678300242 +0100
+++ b/ml/dlib/dlib/external/pybind11/tools/mkdoc.py 2022-12-02 19:09:02.182144217 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/python33
#
# Syntax: mkdoc.py [-I<path> ..] [.. a list of header files ..]
#
diff -rup a/ml/dlib/dlib/travis/build-and-test.sh b/ml/dlib/dlib/travis/build-and-test.sh
--- a/ml/dlib/dlib/travis/build-and-test.sh 2022-11-30 13:36:56.750302376 +0100
+++ b/ml/dlib/dlib/travis/build-and-test.sh 2022-12-02 19:09:02.061143656 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# Exit if anything fails.
set -eux
diff -rup a/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py b/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py
--- a/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py 2022-11-30 13:36:56.798303799 +0100
+++ b/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py 2022-12-02 19:09:02.185144231 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
# This script takes the dlib lenet model trained by the
# examples/dnn_introduction_ex.cpp example program and runs it using caffe.
diff -rup a/packaging/check-kernel-config.sh b/packaging/check-kernel-config.sh
--- a/packaging/check-kernel-config.sh 2022-11-30 13:36:48.434055812 +0100
+++ b/packaging/check-kernel-config.sh 2022-12-02 19:09:02.063143665 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
get_kernel_version() {
r="$(uname -r | cut -f 1 -d '-')"
diff -rup a/system/edit-config b/system/edit-config
--- a/system/edit-config 2022-11-30 13:37:39.643575179 +0100
+++ b/system/edit-config 2022-12-02 19:09:02.080143744 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/usr/bin/sh
[ -f /etc/profile ] && . /etc/profile
diff -rup a/system/edit-config.in b/system/edit-config.in
--- a/system/edit-config.in 2022-11-30 13:36:48.442056049 +0100
+++ b/system/edit-config.in 2022-12-02 19:09:02.082143753 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/usr/bin/sh
[ -f /etc/profile ] && . /etc/profile
diff -rup a/system/install-service.sh.in b/system/install-service.sh.in
--- a/system/install-service.sh.in 2022-11-30 13:36:48.442056049 +0100
+++ b/system/install-service.sh.in 2022-12-02 19:09:02.078143735 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/usr/bin/sh
# SPDX-License-Identifier: GPL-3.0-or-later
diff -rup a/system/netdata-lsb.in b/system/netdata-lsb.in
--- a/system/netdata-lsb.in 2022-11-30 13:36:48.442056049 +0100
+++ b/system/netdata-lsb.in 2022-12-02 19:09:02.065143674 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
#
# Netdata LSB start script
#
diff -rup a/tests/health_mgmtapi/health-cmdapi-test.sh b/tests/health_mgmtapi/health-cmdapi-test.sh
--- a/tests/health_mgmtapi/health-cmdapi-test.sh 2022-11-30 13:37:39.683576365 +0100
+++ b/tests/health_mgmtapi/health-cmdapi-test.sh 2022-12-02 19:09:02.069143693 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# shellcheck disable=SC1117,SC2034,SC2059,SC2086,SC2181
NETDATA_VARLIB_DIR="/var/lib/netdata"
diff -rup a/tests/health_mgmtapi/health-cmdapi-test.sh.in b/tests/health_mgmtapi/health-cmdapi-test.sh.in
--- a/tests/health_mgmtapi/health-cmdapi-test.sh.in 2022-11-30 13:36:48.442056049 +0100
+++ b/tests/health_mgmtapi/health-cmdapi-test.sh.in 2022-12-02 19:09:02.067143683 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
# shellcheck disable=SC1117,SC2034,SC2059,SC2086,SC2181
NETDATA_VARLIB_DIR="@varlibdir_POST@"