X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=netdata-installer.sh;fp=netdata-installer.sh;h=9957e95b59003343f34947ef49b62f5a57cfbd85;hb=13b06ff7cec584abe313199e5d547c2c79940260;hp=b078ac6d5f46486ed73fb433ae4a49f6e4add4c4;hpb=89c66bc7389a037231eebc0085bb1d083aaac469;p=netdata.git diff --git a/netdata-installer.sh b/netdata-installer.sh index b078ac6d..9957e95b 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -131,7 +131,7 @@ For the plugins, you will at least need: USAGE } -md5sum="$(which md5sum 2>/dev/null || command -v md5sum 2>/dev/null)" +md5sum="$(which md5sum 2>/dev/null || command -v md5sum 2>/dev/null || command -v md5 2>/dev/null)" get_git_config_signatures() { local x s file md5 @@ -147,7 +147,7 @@ get_git_config_signatures() { for c in $(git log --follow "conf.d/${x}" | grep ^commit | cut -d ' ' -f 2) do git checkout ${c} "conf.d/${x}" || continue - s="$(cat "conf.d/${x}" | md5sum | cut -d ' ' -f 1)" + s="$(cat "conf.d/${x}" | ${md5sum} | cut -d ' ' -f 1)" echo >>configs.signatures.tmp "${s}:${x}" echo " ${s}" done