summaryrefslogtreecommitdiffstats
path: root/tests/installer/checksums.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-28 21:16:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-28 21:16:49 +0000
commitc7191c291b318c93b4db058b7ff820cb7dc44cc7 (patch)
tree8caa842f47708dac599794745b87212e4d71df7b /tests/installer/checksums.sh
parentReleasing debian version 1.12.1-2. (diff)
downloadnetdata-c7191c291b318c93b4db058b7ff820cb7dc44cc7.tar.xz
netdata-c7191c291b318c93b4db058b7ff820cb7dc44cc7.zip
Merging upstream version 1.12.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/installer/checksums.sh')
-rwxr-xr-xtests/installer/checksums.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/installer/checksums.sh b/tests/installer/checksums.sh
new file mode 100755
index 000000000..2c0279015
--- /dev/null
+++ b/tests/installer/checksums.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+set -e
+
+if [ ! -f .gitignore ]; then
+ echo "Run as ./tests/installer/$(basename "$0") from top level directory of git repository"
+ exit 1
+fi
+
+for file in kickstart.sh kickstart-static64.sh; do
+ OLD_CHECKSUM=$(grep "$file" packaging/installer/README.md | grep md5sum | cut -d '"' -f2)
+ NEW_CHECKSUM="$(md5sum "packaging/installer/$file" | cut -d' ' -f1)"
+ if [ "$OLD_CHECKSUM" != "$NEW_CHECKSUM" ]; then
+ echo "Invalid checksum for $file in docs."
+ echo "checksum in docs: $OLD_CHECKSUM"
+ echo "current checksum: $NEW_CHECKSUM"
+ exit 1
+ fi
+done