From f4b6e8572be6baa15011a3e6618847a8d3bfc0f0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Jan 2015 14:59:12 +0000 Subject: [PATCH] More checking --- install-freedombone.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index c1eb9317..3fc5503f 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -631,14 +631,23 @@ function install_cjdns { # create a configuration if [ ! -f /etc/cjdns/cjdroute.conf ]; then ./cjdroute --genconf > /etc/cjdns/cjdroute.conf + if [ ! "$?" = "0" ]; then + exit 5922 + fi fi ./do + if [ ! "$?" = "0" ]; then + exit 7439 + fi # create a user to run as useradd cjdns else cd /etc/cjdns git pull ./do + if [ ! "$?" = "0" ]; then + exit 9926 + fi fi # set permissions @@ -782,7 +791,7 @@ function install_cjdns { update-rc.d cjdns defaults service cjdns start if [ ! "$?" = "0" ]; then - systemctl status cjdns.service + systemctl status cjdns.service exit 8260 fi