Bladeren bron

Dokuwiki sqlite plugin

Bob Mottram 10 jaren geleden
bovenliggende
commit
70ee1fcdf2
1 gewijzigde bestanden met toevoegingen van 28 en 0 verwijderingen
  1. 28
    0
      install-freedombone.sh

+ 28
- 0
install-freedombone.sh Bestand weergeven

108
 WIKI_BLOGTNG_ADDON="https://github.com/dokufreaks/plugin-blogtng/zipball/master"
108
 WIKI_BLOGTNG_ADDON="https://github.com/dokufreaks/plugin-blogtng/zipball/master"
109
 WIKI_BLOGTNG_ADDON_HASH="212b3ad918fdc92b2d49ef5d36bc9e086eab27532931ba6b87e05f35fd402a27"
109
 WIKI_BLOGTNG_ADDON_HASH="212b3ad918fdc92b2d49ef5d36bc9e086eab27532931ba6b87e05f35fd402a27"
110
 
110
 
111
+# see https://www.dokuwiki.org/plugin:sqlite
112
+WIKI_SQLITE_ADDON_NAME="cosmocode-sqlite-7be4003.tar.gz"
113
+WIKI_SQLITE_ADDON_ARCHIVE="$WIKI_SQLITE_ADDON_NAME.tar.gz"
114
+WIKI_SQLITE_ADDON="https://github.com/cosmocode/sqlite/tarball/master"
115
+WIKI_SQLITE_ADDON_HASH="930335e647c7e62f3068689c256ee169fad2426b64f8360685d391ecb5eeda0c"
116
+
111
 GPG_KEYSERVER="hkp://keys.gnupg.net"
117
 GPG_KEYSERVER="hkp://keys.gnupg.net"
112
 
118
 
113
 # optionally you can provide your exported GPG key pair here
119
 # optionally you can provide your exported GPG key pair here
2101
       exit 24
2107
       exit 24
2102
   fi
2108
   fi
2103
 
2109
 
2110
+  # download dokuwiki sqlite plugin
2111
+  wget $WIKI_SQLITE_ADDON
2112
+  if [ ! -f "$INSTALL_DIR/master" ]; then
2113
+      echo 'Dokuwiki sqlite addon could not be downloaded. Check the Dokuwiki web site and alter WIKI_SQLITE_ADDON at the top of this script as needed.'
2114
+      exit 25
2115
+  fi
2116
+  mv master $WIKI_SQLITE_ADDON_ARCHIVE
2117
+
2118
+  # Check that the sqlite plugin hash is correct
2119
+  CHECKSUM=$(sha256sum $WIKI_SQLITE_ADDON_ARCHIVE | awk -F ' ' '{print $1}')
2120
+  if [[ $CHECKSUM != $WIKI_SQLITE_ADDON_HASH ]]; then
2121
+      echo 'The sha256 hash of the Dokuwiki sqlite download is incorrect. Possibly the file may have been tampered with. Check the hash on the Dokuwiki sqlite plugin web site and alter WIKI_SQLITE_ADDON_HASH if needed.'
2122
+	  echo $CHECKSUM
2123
+	  echo $WIKI_SQLITE_ADDON_HASH
2124
+      exit 26
2125
+  fi
2126
+
2127
+  # install dokuwiki sqlite plugin
2128
+  tar -xzvf $WIKI_SQLITE_ADDON_ARCHIVE
2129
+  mv $WIKI_SQLITE_ADDON_NAME cosmocode-sqlite
2130
+  cp -r cosmocode-sqlite /var/www/$WIKI_DOMAIN_NAME/htdocs/lib/plugins/
2131
+
2104
   # install blogTNG
2132
   # install blogTNG
2105
   unzip $WIKI_BLOGTNG_ADDON_ARCHIVE
2133
   unzip $WIKI_BLOGTNG_ADDON_ARCHIVE
2106
   mv $WIKI_BLOGTNG_ADDON_NAME blogtng
2134
   mv $WIKI_BLOGTNG_ADDON_NAME blogtng