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:
parent
77c9e21f82
commit
3efb5eb98a
|
@ -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