wiki directory creation

This commit is contained in:
Bob Mottram 2016-10-11 15:13:19 +01:00
parent ab5fc8ca9d
commit 949b4c9991
1 changed files with 6 additions and 2 deletions

View File

@ -263,9 +263,13 @@ function install_wiki {
ln -s /usr/share/dokuwiki /var/www/$WIKI_DOMAIN_NAME/htdocs
if [ ! -d /var/lib/dokuwiki/custom ]; then
mkdir /var/lib/dokuwiki/custom
fi
cp /etc/dokuwiki/local.php.dist /var/lib/dokuwiki/custom/local.php
if [ ! -f /etc/dokuwiki/local.php ]; then
ln -s /var/lib/dokuwiki/custom/local.php /etc/dokuwiki/local.php
fi
chown www-data /var/lib/dokuwiki/custom
chown www-data /var/lib/dokuwiki/custom/local.php