Przeglądaj źródła

Show checksums on failure

Bob Mottram 10 lat temu
rodzic
commit
48ac26f803
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8
    0
      install-freedombone.sh

+ 8
- 0
install-freedombone.sh Wyświetl plik

1696
   CHECKSUM=$(sha256sum $OWNCLOUD_ARCHIVE | awk -F ' ' '{print $1}')
1696
   CHECKSUM=$(sha256sum $OWNCLOUD_ARCHIVE | awk -F ' ' '{print $1}')
1697
   if [[ $CHECKSUM != $OWNCLOUD_HASH ]]; then
1697
   if [[ $CHECKSUM != $OWNCLOUD_HASH ]]; then
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.'
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
       exit 19
1701
       exit 19
1700
   fi
1702
   fi
1701
   tar -xjf $OWNCLOUD_ARCHIVE
1703
   tar -xjf $OWNCLOUD_ARCHIVE
1893
   CHECKSUM=$(sha256sum $WIKI_ARCHIVE | awk -F ' ' '{print $1}')
1895
   CHECKSUM=$(sha256sum $WIKI_ARCHIVE | awk -F ' ' '{print $1}')
1894
   if [[ $CHECKSUM != $WIKI_HASH ]]; then
1896
   if [[ $CHECKSUM != $WIKI_HASH ]]; then
1895
       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.'
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
       exit 21
1900
       exit 21
1897
   fi
1901
   fi
1898
 
1902
 
2068
   CHECKSUM=$(sha256sum $WIKI_MNML_BLOG_ADDON_ARCHIVE | awk -F ' ' '{print $1}')
2072
   CHECKSUM=$(sha256sum $WIKI_MNML_BLOG_ADDON_ARCHIVE | awk -F ' ' '{print $1}')
2069
   if [[ $CHECKSUM != $WIKI_MNML_BLOG_ADDON_HASH ]]; then
2073
   if [[ $CHECKSUM != $WIKI_MNML_BLOG_ADDON_HASH ]]; then
2070
       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.'
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
       exit 22
2077
       exit 22
2072
   fi
2078
   fi
2073
 
2079
 
2083
   CHECKSUM=$(sha256sum $WIKI_BLOGTNG_ADDON_ARCHIVE | awk -F ' ' '{print $1}')
2089
   CHECKSUM=$(sha256sum $WIKI_BLOGTNG_ADDON_ARCHIVE | awk -F ' ' '{print $1}')
2084
   if [[ $CHECKSUM != $WIKI_BLOGTNG_ADDON_HASH ]]; then
2090
   if [[ $CHECKSUM != $WIKI_BLOGTNG_ADDON_HASH ]]; then
2085
       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.'
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
       exit 24
2094
       exit 24
2087
   fi
2095
   fi
2088
 
2096