--- misc/xoa-installer/xoa-installer.sh 2016/02/29 09:26:49 2956 +++ misc/xoa-installer/xoa-installer.sh 2016/02/29 09:39:36 2957 @@ -43,6 +43,20 @@ exit fi + +if [ ! -x "/usr/local/bin/n" ] ; then + echo "installing node.js bootstrap" + curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n || exit + chmod +x /usr/local/bin/n +fi + +if [ ! -x "/usr/local/bin/node" ] ; then + echo "installing node.js" + n stable +fi + + + if [ ! -d "xo-web" ] ; then git clone -b $BRANCH https://github.com/vatesfr/xo-web.git else