浏览代码

Merge pull request #50 from jreeve0805/patch-1

Avoid PHP errors
Bob Mottram 10 年前
父节点
当前提交
69255fc99d
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5
    5
      src/freedombone

+ 5
- 5
src/freedombone 查看文件

@@ -6603,18 +6603,18 @@ function install_wiki {
6603 6603
 
6604 6604
   # disallow registration of new users
6605 6605
   if ! grep -q "disableactions" /etc/dokuwiki/local.php; then
6606
-      echo "$conf['disableactions'] = 'register'" >> /etc/dokuwiki/local.php
6606
+      echo "\$conf['disableactions'] = 'register';" >> /etc/dokuwiki/local.php
6607 6607
   fi
6608 6608
   if ! grep -q "disableactions" /var/lib/dokuwiki/custom/local.php; then
6609
-      echo "$conf['disableactions'] = 'register';" >> /var/lib/dokuwiki/custom/local.php
6609
+      echo "\$conf['disableactions'] = 'register';" >> /var/lib/dokuwiki/custom/local.php
6610 6610
   fi
6611 6611
 
6612 6612
   if ! grep -q "authtype" /var/lib/dokuwiki/custom/local.php; then
6613
-      echo "$conf['authtype'] = 'authplain';" >> /var/lib/dokuwiki/custom/local.php
6613
+      echo "\$conf['authtype'] = 'authplain';" >> /var/lib/dokuwiki/custom/local.php
6614 6614
   fi
6615 6615
   if ! grep -q "authtype" /etc/dokuwiki/local.php; then
6616
-      echo "$conf['authtype'] = 'authplain';" >> /etc/dokuwiki/local.php
6617
-  fi
6616
+      echo "\$conf['authtype'] = 'authplain';" >> /etc/dokuwiki/local.php
6617
+ fi
6618 6618
 
6619 6619
   get_wiki_admin_password
6620 6620
   if [ ! $WIKI_ADMIN_PASSWORD ]; then