Ver código fonte

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.
jreeve0805 10 anos atrás
pai
commit
77c9e21f82
1 arquivos alterados com 13 adições e 13 exclusões
  1. 13
    13
      src/freedombone

+ 13
- 13
src/freedombone Ver arquivo

6592
   sed -i "s/@admin/$MY_USERNAME/g" /etc/dokuwiki/local.php
6592
   sed -i "s/@admin/$MY_USERNAME/g" /etc/dokuwiki/local.php
6593
 
6593
 
6594
   # disallow registration of new users
6594
   # disallow registration of new users
6595
-  if ! grep -q "disableactions" /etc/dokuwiki/local.php; then
6596
-      echo "$conf['disableactions'] = 'register'" >> /etc/dokuwiki/local.php
6597
-  fi
6598
-  if ! grep -q "disableactions" /var/lib/dokuwiki/custom/local.php; then
6599
-      echo "$conf['disableactions'] = 'register';" >> /var/lib/dokuwiki/custom/local.php
6600
-  fi
6601
-
6602
-  if ! grep -q "authtype" /var/lib/dokuwiki/custom/local.php; then
6603
-      echo "$conf['authtype'] = 'authplain';" >> /var/lib/dokuwiki/custom/local.php
6604
-  fi
6605
-  if ! grep -q "authtype" /etc/dokuwiki/local.php; then
6606
-      echo "$conf['authtype'] = 'authplain';" >> /etc/dokuwiki/local.php
6607
-  fi
6595
+  #if ! grep -q "disableactions" /etc/dokuwiki/local.php; then
6596
+  #    echo "$conf['disableactions'] = 'register';" >> /etc/dokuwiki/local.php
6597
+  #fi
6598
+  #if ! grep -q "disableactions" /var/lib/dokuwiki/custom/local.php; then
6599
+  #    echo "$conf['disableactions'] = 'register';" >> /var/lib/dokuwiki/custom/local.php
6600
+  #fi
6601
+
6602
+  #if ! grep -q "authtype" /var/lib/dokuwiki/custom/local.php; then
6603
+  #    echo "$conf['authtype'] = 'authplain';" >> /var/lib/dokuwiki/custom/local.php
6604
+  #fi
6605
+  #if ! grep -q "authtype" /etc/dokuwiki/local.php; then
6606
+  #    echo "$conf['authtype'] = 'authplain';" >> /etc/dokuwiki/local.php
6607
+ #fi
6608
 
6608
 
6609
   get_wiki_admin_password
6609
   get_wiki_admin_password
6610
   if [ ! $WIKI_ADMIN_PASSWORD ]; then
6610
   if [ ! $WIKI_ADMIN_PASSWORD ]; then