--- misc/xoa-installer/xoa-installer.sh 2017/01/03 15:01:59 3184 +++ misc/xoa-installer/xoa-installer.sh 2017/03/20 21:54:00 3194 @@ -40,6 +40,12 @@ fi if [ "$1" == "clean" ] ; then + echo cleaning global npm packages + npm uninstall -g gulp + npm uninstall -g node-gyp + npm uninstall -g forever + npm uninstall -g bcrypt + echo cleaning xo-web rm -rf xo-web @@ -170,6 +176,7 @@ echo "building xo-web" cd xo-web npm install --unsafe-perm || exit + #npm install || exit npm run build || exit cd .. @@ -190,14 +197,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