소스 검색

More checking

Bob Mottram 10 년 전
부모
커밋
f4b6e8572b
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10
    1
      install-freedombone.sh

+ 10
- 1
install-freedombone.sh 파일 보기

631
       # create a configuration
631
       # create a configuration
632
       if [ ! -f /etc/cjdns/cjdroute.conf ]; then
632
       if [ ! -f /etc/cjdns/cjdroute.conf ]; then
633
           ./cjdroute --genconf > /etc/cjdns/cjdroute.conf
633
           ./cjdroute --genconf > /etc/cjdns/cjdroute.conf
634
+          if [ ! "$?" = "0" ]; then
635
+              exit 5922
636
+          fi
634
       fi
637
       fi
635
       ./do
638
       ./do
639
+      if [ ! "$?" = "0" ]; then
640
+          exit 7439
641
+      fi
636
       # create a user to run as
642
       # create a user to run as
637
       useradd cjdns
643
       useradd cjdns
638
   else
644
   else
639
       cd /etc/cjdns
645
       cd /etc/cjdns
640
       git pull
646
       git pull
641
       ./do
647
       ./do
648
+      if [ ! "$?" = "0" ]; then
649
+          exit 9926
650
+      fi
642
   fi
651
   fi
643
 
652
 
644
   # set permissions
653
   # set permissions
782
   update-rc.d cjdns defaults
791
   update-rc.d cjdns defaults
783
   service cjdns start
792
   service cjdns start
784
   if [ ! "$?" = "0" ]; then
793
   if [ ! "$?" = "0" ]; then
785
-	  systemctl status cjdns.service
794
+      systemctl status cjdns.service
786
       exit 8260
795
       exit 8260
787
   fi
796
   fi
788
 
797