--- misc/xoa-installer/xoa-installer.sh 2016/12/22 12:43:51 3180 +++ misc/xoa-installer/xoa-installer.sh 2017/01/03 21:34:30 3187 @@ -5,7 +5,8 @@ # # If running on a raspberry 1(A/B) raspian/wheezy - downgrade node.js to 5.4.0 # Please note that raspian/wheezy for arm defaults to gcc 4.6 -# gcc 4.7 is needed for compiling node-js modules +# gcc 4.7 is needed for compiling node-js modules +# 2017-01-03 gcc 4.8 is required BRANCH=stable @@ -101,7 +102,7 @@ if [ ! -x "/usr/local/bin/node" ] ; then echo "installing node.js" - n stable || exit + n lts || exit fi if [ ! -x "/usr/local/bin/gulp" ] ; then @@ -151,7 +152,7 @@ # xo-server echo "building xo-server" cd xo-server - npm install || exit + npm install --unsafe-perm || exit npm run build || exit #for some reasone leveldown fails occasionally on arm/raspberry pi @@ -190,14 +191,13 @@ # cp xo-web-v4/dist/images/logo_small.png xo-web/dist/images/logo_small.png #fi +dir=`dirname $0` if [ ! -f "/etc/xo-server/config.yaml" ] ; then if [ ! -d "/etc/xo-server" ] ; then mkdir /etc/xo-server fi - - echo "please setup /etc/xo-server/config.yaml" - exit + copy $dir/config.yaml /etc/xo-server/config.yaml fi echo Installing plugins