--- misc/xoa-installer/xoa-installer.sh 2016/03/19 08:05:57 2979 +++ misc/xoa-installer/xoa-installer.sh 2016/03/19 12:29:57 2985 @@ -1,9 +1,10 @@ #!/bin/bash -# npm install -g npm@next +# Note: this script works on debian 7 /wheezy +# I haven't yet managed to get it to work on deb8/jessie +# I running on a raspberry1 raspian/wheezy - downgrade node.js to 5.4.0 -#BRANCH=next-release BRANCH=master @@ -54,10 +55,20 @@ apt-get install build-essential || exit fi +if [ ! -f "/usr/include/libpng12/png.h" ] ; then + echo "installing libpng" + apt-get install libpng12-dev +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 @@ -86,9 +97,9 @@ npm install -g node-gyp fi -if [ ! -x "/usr/bin/git" ] ; then - echo "installing git" - apt-get install git +if [ ! -d "/usr/local/lib/node_modules/bcrypt" ] ; then + echo "installing bcrypt" + npm install -g bcrypt fi if [ ! -d "xo-web" ] ; then @@ -124,6 +135,11 @@ npm run build || exit cd .. +if [ ! -f "/etc/xo-server/config.yaml" ] then + echo "please setup /etc/xo-server/config.yaml" + exit +fi + restartxo