--- misc/xoa-installer/xoa-installer.sh 2016/02/29 09:49:28 2959 +++ misc/xoa-installer/xoa-installer.sh 2016/03/19 08:19:53 2980 @@ -49,6 +49,22 @@ apt-get install curl || exit fi +if [ ! -x "/usr/bin/gcc" ] ; then + echo "installing build-essential" + apt-get install build-essential || exit +fi + +if [ ! -x "/usr/bin/redis-server" ] ; then + echo "installing redis-server" + apt-get install redis-server || exit +fi + +if [ ! -x "/usr/bin/git" ] ; then + echo "installing git" + apt-get install git +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 @@ -62,10 +78,20 @@ if [ ! -x "/usr/local/bin/gulp" ] ; then echo "installing gulp" - npm install -x gulp + npm install -g gulp +fi + +if [ ! -x "/usr/local/bin/forever" ] ; then + echo "installing forever" + npm install -g forever fi +if [ ! -x "/usr/local/bin/node-gyp" ] ; then + echo "installing node-gyp" + npm install -g node-gyp +fi +npm install -g bcrypt if [ ! -d "xo-web" ] ; then git clone -b $BRANCH https://github.com/vatesfr/xo-web.git