Merge pull request #50 from jreeve0805/patch-1

Avoid PHP errors
This commit is contained in:
Bob Mottram 2015-02-12 22:03:45 +00:00
commit 69255fc99d
1 changed files with 5 additions and 5 deletions

View File

@ -6603,18 +6603,18 @@ function install_wiki {
# disallow registration of new users
if ! grep -q "disableactions" /etc/dokuwiki/local.php; then
echo "$conf['disableactions'] = 'register'" >> /etc/dokuwiki/local.php
echo "\$conf['disableactions'] = 'register';" >> /etc/dokuwiki/local.php
fi
if ! grep -q "disableactions" /var/lib/dokuwiki/custom/local.php; then
echo "$conf['disableactions'] = 'register';" >> /var/lib/dokuwiki/custom/local.php
echo "\$conf['disableactions'] = 'register';" >> /var/lib/dokuwiki/custom/local.php
fi
if ! grep -q "authtype" /var/lib/dokuwiki/custom/local.php; then
echo "$conf['authtype'] = 'authplain';" >> /var/lib/dokuwiki/custom/local.php
echo "\$conf['authtype'] = 'authplain';" >> /var/lib/dokuwiki/custom/local.php
fi
if ! grep -q "authtype" /etc/dokuwiki/local.php; then
echo "$conf['authtype'] = 'authplain';" >> /etc/dokuwiki/local.php
fi
echo "\$conf['authtype'] = 'authplain';" >> /etc/dokuwiki/local.php
fi
get_wiki_admin_password
if [ ! $WIKI_ADMIN_PASSWORD ]; then