Browse Source

Order of the do

Bob Mottram 10 years ago
parent
commit
3bf3329eff
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      install-freedombone.sh

+ 4
- 4
install-freedombone.sh View File

628
   if [ ! -d /etc/cjdns ]; then
628
   if [ ! -d /etc/cjdns ]; then
629
       git clone https://github.com/cjdelisle/cjdns.git /etc/cjdns
629
       git clone https://github.com/cjdelisle/cjdns.git /etc/cjdns
630
       cd /etc/cjdns
630
       cd /etc/cjdns
631
+      ./do
632
+      if [ ! "$?" = "0" ]; then
633
+          exit 7439
634
+      fi
631
       # create a configuration
635
       # create a configuration
632
       if [ ! -f /etc/cjdns/cjdroute.conf ]; then
636
       if [ ! -f /etc/cjdns/cjdroute.conf ]; then
633
           ./cjdroute --genconf > /etc/cjdns/cjdroute.conf
637
           ./cjdroute --genconf > /etc/cjdns/cjdroute.conf
635
               exit 5922
639
               exit 5922
636
           fi
640
           fi
637
       fi
641
       fi
638
-      ./do
639
-      if [ ! "$?" = "0" ]; then
640
-          exit 7439
641
-      fi
642
       # create a user to run as
642
       # create a user to run as
643
       useradd cjdns
643
       useradd cjdns
644
   else
644
   else