From 48ac26f803606a72e8b47c5e60cbc31cdc8c4d77 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 26 Sep 2014 16:59:46 +0100 Subject: [PATCH] Show checksums on failure --- install-freedombone.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index 5eef442d..7d8f6bc1 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -1696,6 +1696,8 @@ function install_owncloud { CHECKSUM=$(sha256sum $OWNCLOUD_ARCHIVE | awk -F ' ' '{print $1}') if [[ $CHECKSUM != $OWNCLOUD_HASH ]]; then echo 'The sha256 hash of the owncloud download is incorrect. Possibly the file may have been tampered with. Check the hash on the Owncloud web site.' + echo $CHECKSUM + echo $OWNCLOUD_HASH exit 19 fi tar -xjf $OWNCLOUD_ARCHIVE @@ -1893,6 +1895,8 @@ function install_wiki { CHECKSUM=$(sha256sum $WIKI_ARCHIVE | awk -F ' ' '{print $1}') if [[ $CHECKSUM != $WIKI_HASH ]]; then echo 'The sha256 hash of the Dokuwiki download is incorrect. Possibly the file may have been tampered with. Check the hash on the Dokuwiki web site.' + echo $CHECKSUM + echo $WIKI_HASH exit 21 fi @@ -2068,6 +2072,8 @@ function install_blog { CHECKSUM=$(sha256sum $WIKI_MNML_BLOG_ADDON_ARCHIVE | awk -F ' ' '{print $1}') if [[ $CHECKSUM != $WIKI_MNML_BLOG_ADDON_HASH ]]; then echo 'The sha256 hash of the mnml-blog download is incorrect. Possibly the file may have been tampered with. Check the hash on the Dokuwiki mnmlblog web site and alter WIKI_MNML_BLOG_ADDON_HASH if needed.' + echo $CHECKSUM + echo $WIKI_MNML_BLOG_ADDON_HASH exit 22 fi @@ -2083,6 +2089,8 @@ function install_blog { CHECKSUM=$(sha256sum $WIKI_BLOGTNG_ADDON_ARCHIVE | awk -F ' ' '{print $1}') if [[ $CHECKSUM != $WIKI_BLOGTNG_ADDON_HASH ]]; then echo 'The sha256 hash of the blogTNG download is incorrect. Possibly the file may have been tampered with. Check the hash on the Dokuwiki blogTNG web site and alter WIKI_BLOGTNG_ADDON_HASH if needed.' + echo $CHECKSUM + echo $WIKI_BLOGTNG_ADDON_HASH exit 24 fi