Remove old directories

This commit is contained in:
Bob Mottram 2014-09-26 17:46:47 +01:00
parent a2b53037ce
commit f6ace15903
1 changed files with 16 additions and 10 deletions

View File

@ -1702,8 +1702,8 @@ function install_owncloud {
CHECKSUM=$(sha256sum $OWNCLOUD_ARCHIVE | awk -F ' ' '{print $1}') CHECKSUM=$(sha256sum $OWNCLOUD_ARCHIVE | awk -F ' ' '{print $1}')
if [[ $CHECKSUM != $OWNCLOUD_HASH ]]; then 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 '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 $CHECKSUM
echo $OWNCLOUD_HASH echo $OWNCLOUD_HASH
exit 19 exit 19
fi fi
tar -xjf $OWNCLOUD_ARCHIVE tar -xjf $OWNCLOUD_ARCHIVE
@ -1901,8 +1901,8 @@ function install_wiki {
CHECKSUM=$(sha256sum $WIKI_ARCHIVE | awk -F ' ' '{print $1}') CHECKSUM=$(sha256sum $WIKI_ARCHIVE | awk -F ' ' '{print $1}')
if [[ $CHECKSUM != $WIKI_HASH ]]; then 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 '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 $CHECKSUM
echo $WIKI_HASH echo $WIKI_HASH
exit 21 exit 21
fi fi
@ -2085,8 +2085,8 @@ function install_blog {
CHECKSUM=$(sha256sum $WIKI_MNML_BLOG_ADDON_ARCHIVE | awk -F ' ' '{print $1}') CHECKSUM=$(sha256sum $WIKI_MNML_BLOG_ADDON_ARCHIVE | awk -F ' ' '{print $1}')
if [[ $CHECKSUM != $WIKI_MNML_BLOG_ADDON_HASH ]]; then 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 '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 $CHECKSUM
echo $WIKI_MNML_BLOG_ADDON_HASH echo $WIKI_MNML_BLOG_ADDON_HASH
exit 22 exit 22
fi fi
@ -2102,8 +2102,8 @@ function install_blog {
CHECKSUM=$(sha256sum $WIKI_BLOGTNG_ADDON_ARCHIVE | awk -F ' ' '{print $1}') CHECKSUM=$(sha256sum $WIKI_BLOGTNG_ADDON_ARCHIVE | awk -F ' ' '{print $1}')
if [[ $CHECKSUM != $WIKI_BLOGTNG_ADDON_HASH ]]; then 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 '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 $CHECKSUM
echo $WIKI_BLOGTNG_ADDON_HASH echo $WIKI_BLOGTNG_ADDON_HASH
exit 24 exit 24
fi fi
@ -2119,18 +2119,24 @@ function install_blog {
CHECKSUM=$(sha256sum $WIKI_SQLITE_ADDON_ARCHIVE | awk -F ' ' '{print $1}') CHECKSUM=$(sha256sum $WIKI_SQLITE_ADDON_ARCHIVE | awk -F ' ' '{print $1}')
if [[ $CHECKSUM != $WIKI_SQLITE_ADDON_HASH ]]; then if [[ $CHECKSUM != $WIKI_SQLITE_ADDON_HASH ]]; then
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.' 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.'
echo $CHECKSUM echo $CHECKSUM
echo $WIKI_SQLITE_ADDON_HASH echo $WIKI_SQLITE_ADDON_HASH
exit 26 exit 26
fi fi
# install dokuwiki sqlite plugin # install dokuwiki sqlite plugin
tar -xzvf $WIKI_SQLITE_ADDON_ARCHIVE tar -xzvf $WIKI_SQLITE_ADDON_ARCHIVE
if [ -d "$INSTALL_DIR/sqlite" ]; then
rm -rf $INSTALL_DIR/sqlite
fi
mv $WIKI_SQLITE_ADDON_NAME sqlite mv $WIKI_SQLITE_ADDON_NAME sqlite
cp -r sqlite /var/www/$WIKI_DOMAIN_NAME/htdocs/lib/plugins/ cp -r sqlite /var/www/$WIKI_DOMAIN_NAME/htdocs/lib/plugins/
# install blogTNG # install blogTNG
unzip $WIKI_BLOGTNG_ADDON_ARCHIVE unzip $WIKI_BLOGTNG_ADDON_ARCHIVE
if [ -d "$INSTALL_DIR/blogtng" ]; then
rm -rf $INSTALL_DIR/blogtng
fi
mv $WIKI_BLOGTNG_ADDON_NAME blogtng mv $WIKI_BLOGTNG_ADDON_NAME blogtng
cp -r blogtng /var/www/$WIKI_DOMAIN_NAME/htdocs/lib/plugins/ cp -r blogtng /var/www/$WIKI_DOMAIN_NAME/htdocs/lib/plugins/