--- misc/xoa-installer/xoa-installer.sh 2016/02/29 10:29:04 2963 +++ misc/xoa-installer/xoa-installer.sh 2016/03/19 08:23:22 2981 @@ -58,6 +58,11 @@ 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 @@ -81,7 +86,15 @@ npm install -g forever fi +if [ ! -x "/usr/local/bin/node-gyp" ] ; then + echo "installing node-gyp" + npm install -g node-gyp +fi +if [ ! -d "/usr/local/lib/node_modules" ] ; then + echo "installing bcrypt" + npm install -g bcrypt +fi if [ ! -d "xo-web" ] ; then git clone -b $BRANCH https://github.com/vatesfr/xo-web.git