Update freedombone

Finally found out that using a back slash will allow us to use the $ in a bash script.
This commit is contained in:
jreeve0805 2015-02-09 11:11:00 -05:00
parent 77c9e21f82
commit 3efb5eb98a
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