Browse Source

Show checksums on failure

Bob Mottram 10 years ago
parent
commit
48ac26f803
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      install-freedombone.sh

+ 8
- 0
install-freedombone.sh View File

@@ -1696,6 +1696,8 @@ function install_owncloud {
1696 1696
   CHECKSUM=$(sha256sum $OWNCLOUD_ARCHIVE | awk -F ' ' '{print $1}')
1697 1697
   if [[ $CHECKSUM != $OWNCLOUD_HASH ]]; then
1698 1698
       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.'
1699
+	  echo $CHECKSUM
1700
+	  echo $OWNCLOUD_HASH
1699 1701
       exit 19
1700 1702
   fi
1701 1703
   tar -xjf $OWNCLOUD_ARCHIVE
@@ -1893,6 +1895,8 @@ function install_wiki {
1893 1895
   CHECKSUM=$(sha256sum $WIKI_ARCHIVE | awk -F ' ' '{print $1}')
1894 1896
   if [[ $CHECKSUM != $WIKI_HASH ]]; then
1895 1897
       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.'
1898
+	  echo $CHECKSUM
1899
+	  echo $WIKI_HASH
1896 1900
       exit 21
1897 1901
   fi
1898 1902
 
@@ -2068,6 +2072,8 @@ function install_blog {
2068 2072
   CHECKSUM=$(sha256sum $WIKI_MNML_BLOG_ADDON_ARCHIVE | awk -F ' ' '{print $1}')
2069 2073
   if [[ $CHECKSUM != $WIKI_MNML_BLOG_ADDON_HASH ]]; then
2070 2074
       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.'
2075
+	  echo $CHECKSUM
2076
+	  echo $WIKI_MNML_BLOG_ADDON_HASH
2071 2077
       exit 22
2072 2078
   fi
2073 2079
 
@@ -2083,6 +2089,8 @@ function install_blog {
2083 2089
   CHECKSUM=$(sha256sum $WIKI_BLOGTNG_ADDON_ARCHIVE | awk -F ' ' '{print $1}')
2084 2090
   if [[ $CHECKSUM != $WIKI_BLOGTNG_ADDON_HASH ]]; then
2085 2091
       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.'
2092
+	  echo $CHECKSUM
2093
+	  echo $WIKI_BLOGTNG_ADDON_HASH
2086 2094
       exit 24
2087 2095
   fi
2088 2096