浏览代码

Order of the do

Bob Mottram 10 年前
父节点
当前提交
3bf3329eff
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      install-freedombone.sh

+ 4
- 4
install-freedombone.sh 查看文件

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