Sfoglia il codice sorgente

Update freedombone

Finally found out that using a back slash will allow us to use the $ in a bash script.
jreeve0805 10 anni fa
parent
commit
3efb5eb98a
1 ha cambiato i file con 13 aggiunte e 13 eliminazioni
  1. 13
    13
      src/freedombone

+ 13
- 13
src/freedombone Vedi File

@@ -6592,19 +6592,19 @@ function install_wiki {
6592 6592
   sed -i "s/@admin/$MY_USERNAME/g" /etc/dokuwiki/local.php
6593 6593
 
6594 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 6609
   get_wiki_admin_password
6610 6610
   if [ ! $WIKI_ADMIN_PASSWORD ]; then