More checking
This commit is contained in:
parent
0d60689364
commit
f4b6e8572b
|
@ -631,14 +631,23 @@ function install_cjdns {
|
||||||
# create a configuration
|
# create a configuration
|
||||||
if [ ! -f /etc/cjdns/cjdroute.conf ]; then
|
if [ ! -f /etc/cjdns/cjdroute.conf ]; then
|
||||||
./cjdroute --genconf > /etc/cjdns/cjdroute.conf
|
./cjdroute --genconf > /etc/cjdns/cjdroute.conf
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
exit 5922
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
./do
|
./do
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
exit 7439
|
||||||
|
fi
|
||||||
# create a user to run as
|
# create a user to run as
|
||||||
useradd cjdns
|
useradd cjdns
|
||||||
else
|
else
|
||||||
cd /etc/cjdns
|
cd /etc/cjdns
|
||||||
git pull
|
git pull
|
||||||
./do
|
./do
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
exit 9926
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set permissions
|
# set permissions
|
||||||
|
|
Loading…
Reference in New Issue