Order of the do
This commit is contained in:
parent
f4b6e8572b
commit
3bf3329eff
|
@ -628,6 +628,10 @@ function install_cjdns {
|
||||||
if [ ! -d /etc/cjdns ]; then
|
if [ ! -d /etc/cjdns ]; then
|
||||||
git clone https://github.com/cjdelisle/cjdns.git /etc/cjdns
|
git clone https://github.com/cjdelisle/cjdns.git /etc/cjdns
|
||||||
cd /etc/cjdns
|
cd /etc/cjdns
|
||||||
|
./do
|
||||||
|
if [ ! "$?" = "0" ]; then
|
||||||
|
exit 7439
|
||||||
|
fi
|
||||||
# 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
|
||||||
|
@ -635,10 +639,6 @@ function install_cjdns {
|
||||||
exit 5922
|
exit 5922
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
./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
|
||||||
|
|
Loading…
Reference in New Issue