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:
parent
4373631f0a
commit
77c9e21f82
|
@ -6592,19 +6592,19 @@ function install_wiki {
|
||||||
sed -i "s/@admin/$MY_USERNAME/g" /etc/dokuwiki/local.php
|
sed -i "s/@admin/$MY_USERNAME/g" /etc/dokuwiki/local.php
|
||||||
|
|
||||||
# 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
|
||||||
if [ ! $WIKI_ADMIN_PASSWORD ]; then
|
if [ ! $WIKI_ADMIN_PASSWORD ]; then
|
||||||
|
|
Loading…
Reference in New Issue