Fixing wiki

This commit is contained in:
Bob Mottram 2014-09-26 15:20:38 +01:00
parent 822f0516bc
commit 7b95c2b528
1 changed files with 6 additions and 2 deletions

View File

@ -1896,8 +1896,12 @@ function install_wiki {
fi
tar -xzvf $WIKI_ARCHIVE
rm -rf /var/www/$WIKI_DOMAIN_NAME/htdocs
mv dokuwiki /var/www/$WIKI_DOMAIN_NAME/htdocs
cd dokuwiki-*
if [ -f "/var/www/$WIKI_DOMAIN_NAME/htdocs" ]; then
rm -rf /var/www/$WIKI_DOMAIN_NAME/htdocs
fi
mv * /var/www/$WIKI_DOMAIN_NAME/htdocs/
chmod -R 755 /var/www/$WIKI_DOMAIN_NAME/htdocs
chown -R www-data:www-data /var/www/$WIKI_DOMAIN_NAME/htdocs