From d079b656b4719739b2247dcd9d46e9bec793095a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 Feb 2023 17:11:34 +0100 Subject: Merging upstream version 1.38.0. Signed-off-by: Daniel Baumann --- tests/installer/checksums.sh | 53 -------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 tests/installer/checksums.sh (limited to 'tests/installer/checksums.sh') diff --git a/tests/installer/checksums.sh b/tests/installer/checksums.sh deleted file mode 100755 index ff0400baa..000000000 --- a/tests/installer/checksums.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -# -# Mechanism to validate kickstart files integrity status -# -# Copyright: SPDX-License-Identifier: GPL-3.0-or-later -# -# Author : Pawel Krupa (pawel@netdata.cloud) -# Author : Pavlos Emm. Katsoulakis (paul@netdata.cloud) -# Author : Austin S. Hemmelgarn (austin@netdata.cloud) -set -e - -# If we are not in netdata git repo, at the top level directory, fail -TOP_LEVEL=$(basename "$(git rev-parse --show-toplevel 2>/dev/null || echo "")") -CWD="$(git rev-parse --show-cdup 2>/dev/null || echo "")" -if [ -n "$CWD" ] || [ "${TOP_LEVEL}" != "netdata" ]; then - echo "Run as ./tests/installer/$(basename "$0") from top level directory of netdata git repository" - echo "Kickstart validation process aborted" - exit 1 -fi - -check_file() { - README_MD5=$(grep "$1" "$2" | grep md5sum | grep curl | cut -d '"' -f2) - KICKSTART_URL="https://my-netdata.io/$1" - KICKSTART="packaging/installer/$1" - KICKSTART_MD5="$(md5sum "${KICKSTART}" | cut -d' ' -f1)" - CALCULATED_MD5="$(curl -Ss "${KICKSTART_URL}" | md5sum | cut -d ' ' -f 1)" - - # Conditionally run the website validation - if [ -z "${LOCAL_ONLY}" ]; then - echo "Validating ${KICKSTART_URL} against local file ${KICKSTART} with MD5 ${KICKSTART_MD5}.." - if [ "$KICKSTART_MD5" = "$CALCULATED_MD5" ]; then - echo "${KICKSTART_URL} looks fine" - else - echo "${KICKSTART_URL} md5sum does not match local file, it needs to be updated" - exit 2 - fi - fi - - echo "Validating documentation for $1" - if [ "$KICKSTART_MD5" != "$README_MD5" ]; then - echo "Invalid checksum for $1 in $2." - echo "checksum in docs: $README_MD5" - echo "current checksum: $KICKSTART_MD5" - exit 2 - else - echo "$1 MD5Sum is well documented" - fi -} - -check_file kickstart.sh packaging/installer/methods/kickstart.md - -echo "No problems found, exiting successfully!" -- cgit v1.2.3