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