--- misc/xoa-installer/xoa-installer.sh 2016/03/28 15:43:06 2989 +++ misc/xoa-installer/xoa-installer.sh 2016/03/28 16:40:48 2990 @@ -1,8 +1,7 @@ #!/bin/bash -# Note: this script works on debian 7 /wheezy -# I haven't yet managed to get it to work on deb8/jessie +# Note: this script works on debian 7/wheezy and debian 8/jessie # # 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 @@ -41,7 +40,7 @@ echo cleaning .forever rm -rf .forever rm -rf forever.log - + echo done exit @@ -72,7 +71,7 @@ echo "installing git" apt-get install git || exit fi - + if [ ! -x "/usr/local/bin/n" ] ; then echo "installing node.js bootstrap" @@ -138,7 +137,11 @@ npm run build || exit cd .. -if [ ! -f "/etc/xo-server/config.yaml" ] then +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 fi