43 |
exit |
exit |
44 |
fi |
fi |
45 |
|
|
46 |
|
|
47 |
|
if [ ! -x "/usr/bin/curl" ] ; then |
48 |
|
echo "installing curl" |
49 |
|
apt-get install curl || exit |
50 |
|
fi |
51 |
|
|
52 |
|
if [ ! -x "/usr/local/bin/n" ] ; then |
53 |
|
echo "installing node.js bootstrap" |
54 |
|
curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n || exit |
55 |
|
chmod +x /usr/local/bin/n |
56 |
|
fi |
57 |
|
|
58 |
|
if [ ! -x "/usr/local/bin/node" ] ; then |
59 |
|
echo "installing node.js" |
60 |
|
n stable || exit |
61 |
|
fi |
62 |
|
|
63 |
|
|
64 |
|
|
65 |
if [ ! -d "xo-web" ] ; then |
if [ ! -d "xo-web" ] ; then |
66 |
git clone -b $BRANCH https://github.com/vatesfr/xo-web.git |
git clone -b $BRANCH https://github.com/vatesfr/xo-web.git |
67 |
else |
else |