337 lines
14 KiB
Diff
337 lines
14 KiB
Diff
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 2023-05-08 14:52:30.397594409 +0200
|
|
+++ b/claim/netdata-claim.sh.in 2023-05-14 11:12:13.229357763 +0200
|
|
@@ -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 2023-05-08 14:52:30.397594409 +0200
|
|
+++ b/collectors/cgroups.plugin/cgroup-name.sh 2023-05-14 11:12:13.253357925 +0200
|
|
@@ -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 2023-05-08 14:52:30.397594409 +0200
|
|
+++ b/collectors/cgroups.plugin/cgroup-network-helper.sh 2023-05-14 11:12:13.251357912 +0200
|
|
@@ -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 2023-05-08 14:52:30.401594370 +0200
|
|
+++ b/collectors/charts.d.plugin/charts.d.dryrun-helper.sh 2023-05-14 11:12:13.242357851 +0200
|
|
@@ -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 2023-05-08 14:53:14.493122687 +0200
|
|
+++ b/collectors/charts.d.plugin/charts.d.plugin 2023-05-14 11:12:13.240357837 +0200
|
|
@@ -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 2023-05-08 14:52:30.401594370 +0200
|
|
+++ b/collectors/charts.d.plugin/charts.d.plugin.in 2023-05-14 11:12:13.237357817 +0200
|
|
@@ -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 2023-05-08 14:53:14.653120991 +0200
|
|
+++ b/collectors/ioping.plugin/ioping.plugin 2023-05-14 11:12:13.245357872 +0200
|
|
@@ -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 2023-05-08 14:52:30.409594292 +0200
|
|
+++ b/collectors/ioping.plugin/ioping.plugin.in 2023-05-14 11:12:13.247357885 +0200
|
|
@@ -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 2023-05-08 14:53:14.929118066 +0200
|
|
+++ b/collectors/python.d.plugin/python.d.plugin 2023-05-14 11:12:13.259357966 +0200
|
|
@@ -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 2023-05-08 14:52:30.429594097 +0200
|
|
+++ b/collectors/python.d.plugin/python.d.plugin.in 2023-05-14 11:12:13.256357946 +0200
|
|
@@ -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 2023-05-08 14:52:30.433594058 +0200
|
|
+++ b/collectors/python.d.plugin/python_modules/third_party/boinc_client.py 2023-05-14 11:12:13.437359174 +0200
|
|
@@ -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 2023-05-08 14:53:15.429112767 +0200
|
|
+++ b/collectors/tc.plugin/tc-qos-helper.sh 2023-05-14 11:12:13.232357783 +0200
|
|
@@ -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 2023-05-08 14:52:30.441593980 +0200
|
|
+++ b/collectors/tc.plugin/tc-qos-helper.sh.in 2023-05-14 11:12:13.234357797 +0200
|
|
@@ -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 2023-05-08 14:52:30.441593980 +0200
|
|
+++ b/contrib/debian/install_go.sh 2023-05-14 11:12:13.261357980 +0200
|
|
@@ -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 2023-05-08 14:52:30.441593980 +0200
|
|
+++ b/contrib/rhel/build-netdata-rpm.sh 2023-05-14 11:12:13.264358000 +0200
|
|
@@ -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 2023-05-08 14:52:30.441593980 +0200
|
|
+++ b/coverity-scan.sh 2023-05-14 11:12:13.266358014 +0200
|
|
@@ -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 2023-05-08 14:52:30.441593980 +0200
|
|
+++ b/cppcheck.sh 2023-05-14 11:12:13.269358034 +0200
|
|
@@ -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 2023-05-08 14:53:15.469112343 +0200
|
|
+++ b/daemon/anonymous-statistics.sh 2023-05-14 11:12:13.309358305 +0200
|
|
@@ -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 2023-05-08 14:52:30.445593941 +0200
|
|
+++ b/daemon/anonymous-statistics.sh.in 2023-05-14 11:12:13.312358326 +0200
|
|
@@ -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 2023-05-08 14:53:15.473112301 +0200
|
|
+++ b/daemon/get-kubernetes-labels.sh 2023-05-14 11:12:13.275358075 +0200
|
|
@@ -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 2023-05-08 14:52:30.445593941 +0200
|
|
+++ b/daemon/get-kubernetes-labels.sh.in 2023-05-14 11:12:13.272358054 +0200
|
|
@@ -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 2023-05-08 14:52:30.445593941 +0200
|
|
+++ b/daemon/system-info.sh 2023-05-14 11:12:13.307358292 +0200
|
|
@@ -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 2023-05-08 14:52:30.505593355 +0200
|
|
+++ b/diagrams/build.sh 2023-05-14 11:12:13.277358089 +0200
|
|
@@ -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 2023-05-08 14:52:30.525593160 +0200
|
|
+++ b/exporting/nc-exporting.sh 2023-05-14 11:12:13.279358102 +0200
|
|
@@ -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 2023-05-08 14:52:30.529593121 +0200
|
|
+++ b/health/notifications/alarm-email.sh 2023-05-14 11:12:13.282358122 +0200
|
|
@@ -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 2023-05-08 14:53:16.097105688 +0200
|
|
+++ b/health/notifications/alarm-notify.sh 2023-05-14 11:12:13.291358183 +0200
|
|
@@ -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 2023-05-08 14:52:30.533593082 +0200
|
|
+++ b/health/notifications/alarm-notify.sh.in 2023-05-14 11:12:13.285358143 +0200
|
|
@@ -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 2023-05-08 14:52:30.533593082 +0200
|
|
+++ b/health/notifications/alarm-test.sh 2023-05-14 11:12:13.288358163 +0200
|
|
@@ -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 2023-05-08 14:52:40.109496786 +0200
|
|
+++ b/ml/dlib/dlib/external/pybind11/tools/mkdoc.py 2023-05-14 11:12:13.441359201 +0200
|
|
@@ -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 2023-05-08 14:52:40.201495797 +0200
|
|
+++ b/ml/dlib/dlib/travis/build-and-test.sh 2023-05-14 11:12:13.294358204 +0200
|
|
@@ -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 2023-05-08 14:52:40.265495109 +0200
|
|
+++ b/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py 2023-05-14 11:12:13.444359221 +0200
|
|
@@ -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 2023-05-08 14:52:30.557592848 +0200
|
|
+++ b/packaging/check-kernel-config.sh 2023-05-14 11:12:13.297358224 +0200
|
|
@@ -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 2023-05-08 14:52:30.565592770 +0200
|
|
+++ b/system/edit-config 2023-05-14 11:12:13.316358353 +0200
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env sh
|
|
+#!/usr/bin/sh
|
|
|
|
# shellcheck disable=SC1091
|
|
[ -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 2023-05-08 14:52:30.565592770 +0200
|
|
+++ b/system/install-service.sh.in 2023-05-14 11:12:13.318358367 +0200
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env sh
|
|
+#!/usr/bin/sh
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
diff -rup a/system/lsb/init.d/netdata.in b/system/lsb/init.d/netdata.in
|
|
--- a/system/lsb/init.d/netdata.in 2023-05-08 14:52:30.565592770 +0200
|
|
+++ b/system/lsb/init.d/netdata.in 2023-05-14 11:12:13.299358238 +0200
|
|
@@ -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 2023-05-08 14:53:14.297124764 +0200
|
|
+++ b/tests/health_mgmtapi/health-cmdapi-test.sh 2023-05-14 11:12:13.304358271 +0200
|
|
@@ -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 2023-05-08 14:52:30.569592731 +0200
|
|
+++ b/tests/health_mgmtapi/health-cmdapi-test.sh.in 2023-05-14 11:12:13.301358251 +0200
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env bash
|
|
+#!/usr/bin/bash
|
|
# shellcheck disable=SC1117,SC2034,SC2059,SC2086,SC2181
|
|
|
|
NETDATA_VARLIB_DIR="@varlibdir_POST@"
|