/[projects]/misc/xoa-installer/xoa-installer.sh
ViewVC logotype

Diff of /misc/xoa-installer/xoa-installer.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3182 by torben, Thu Dec 22 13:12:14 2016 UTC revision 3186 by torben, Tue Jan 3 15:16:14 2017 UTC
# Line 5  Line 5 
5  #  #
6  # If running on a raspberry 1(A/B) raspian/wheezy - downgrade node.js to 5.4.0  # If running on a raspberry 1(A/B) raspian/wheezy - downgrade node.js to 5.4.0
7  # Please note that raspian/wheezy for arm defaults to gcc 4.6  # Please note that raspian/wheezy for arm defaults to gcc 4.6
8  # gcc 4.7 is needed for compiling node-js modules  # <strike>gcc 4.7</strike> is needed for compiling node-js modules
9    # 2017-01-03 gcc 4.8 is required
10    
11  BRANCH=stable  BRANCH=stable
12    
# Line 168  cd .. Line 169  cd ..
169  #xo-web  #xo-web
170  echo "building xo-web"  echo "building xo-web"
171  cd xo-web  cd xo-web
172          #npm install --unsafe-perm || exit          npm install --unsafe-perm || exit
         npm install || exit  
173          npm run build || exit          npm run build || exit
174  cd ..  cd ..
175    
# Line 190  cd .. Line 190  cd ..
190  #       cp xo-web-v4/dist/images/logo_small.png xo-web/dist/images/logo_small.png  #       cp xo-web-v4/dist/images/logo_small.png xo-web/dist/images/logo_small.png
191  #fi  #fi
192    
193    dir=`dirname $0`
194    
195  if [ ! -f "/etc/xo-server/config.yaml" ] ; then  if [ ! -f "/etc/xo-server/config.yaml" ] ; then
196          if  [ ! -d "/etc/xo-server" ] ; then          if  [ ! -d "/etc/xo-server" ] ; then
197                  mkdir /etc/xo-server                  mkdir /etc/xo-server
198          fi          fi
199            copy $dir/config.yaml /etc/xo-server/config.yaml
         echo "please setup /etc/xo-server/config.yaml"  
         exit  
200  fi  fi
201    
202  echo Installing plugins  echo Installing plugins

Legend:
Removed from v.3182  
changed lines
  Added in v.3186

  ViewVC Help
Powered by ViewVC 1.1.20