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