/[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 2982 by torben, Sat Mar 19 08:24:48 2016 UTC revision 2985 by torben, Sat Mar 19 12:29:57 2016 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3    
4  # npm install -g npm@next  # Note: this script works on debian 7 /wheezy
5    # I haven't yet managed to get it to work on deb8/jessie
6    # I running on a raspberry1 raspian/wheezy - downgrade node.js to 5.4.0
7    
 #BRANCH=next-release  
8  BRANCH=master  BRANCH=master
9    
10    
# Line 54  if [ ! -x "/usr/bin/gcc" ] ; then Line 55  if [ ! -x "/usr/bin/gcc" ] ; then
55          apt-get install  build-essential || exit          apt-get install  build-essential || exit
56  fi  fi
57    
58    if [ ! -f "/usr/include/libpng12/png.h" ] ; then
59            echo "installing libpng"
60            apt-get install libpng12-dev
61    fi
62    
63  if [ ! -x "/usr/bin/redis-server" ] ; then  if [ ! -x "/usr/bin/redis-server" ] ; then
64          echo "installing redis-server"          echo "installing redis-server"
65          apt-get install  redis-server || exit          apt-get install  redis-server || exit
# Line 129  npm install --unsafe-perm || exit Line 135  npm install --unsafe-perm || exit
135  npm run build || exit  npm run build || exit
136  cd ..  cd ..
137    
138    if [ ! -f "/etc/xo-server/config.yaml" ] then
139            echo "please setup /etc/xo-server/config.yaml"
140            exit
141    fi
142    
143  restartxo  restartxo
144    
145    

Legend:
Removed from v.2982  
changed lines
  Added in v.2985

  ViewVC Help
Powered by ViewVC 1.1.20