Update freedombone

These settings cause PHP to throw an error. Bash can't echo "$conf" because bash isent that smart. I tried to fix this using printf and cat but could not get the result we need. For now this should be removed until someone can fix it.
This commit is contained in:
jreeve0805 2015-02-08 23:15:21 -05:00
parent 4373631f0a
commit 77c9e21f82
1 changed files with 12 additions and 12 deletions

View File

@ -6592,19 +6592,19 @@ function install_wiki {
sed -i "s/@admin/$MY_USERNAME/g" /etc/dokuwiki/local.php
# disallow registration of new users
if ! grep -q "disableactions" /etc/dokuwiki/local.php; then
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
fi
#if ! grep -q "disableactions" /etc/dokuwiki/local.php; then
# 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
#fi
if ! grep -q "authtype" /var/lib/dokuwiki/custom/local.php; then
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
#if ! grep -q "authtype" /var/lib/dokuwiki/custom/local.php; then
# 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
get_wiki_admin_password
if [ ! $WIKI_ADMIN_PASSWORD ]; then