/[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 2961 by torben, Mon Feb 29 10:05:45 2016 UTC revision 2986 by torben, Sat Mar 19 12:43:25 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 53  if [ ! -x "/usr/bin/gcc" ] ; then Line 54  if [ ! -x "/usr/bin/gcc" ] ; then
54          echo "installing build-essential"          echo "installing build-essential"
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 || exit
61    fi
62    
63    if [ ! -x "/usr/bin/redis-server" ] ; then
64            echo "installing redis-server"
65            apt-get install  redis-server || exit
66    fi
67    
68    if [ ! -x "/usr/bin/git" ] ; then
69            echo "installing git"
70            apt-get install git || exit
71    fi
72                    
73    
74  if [ ! -x "/usr/local/bin/n" ] ; then  if [ ! -x "/usr/local/bin/n" ] ; then
# Line 68  fi Line 84  fi
84    
85  if [ ! -x "/usr/local/bin/gulp" ] ; then  if [ ! -x "/usr/local/bin/gulp" ] ; then
86          echo "installing gulp"          echo "installing gulp"
87          npm install -g gulp          npm install -g gulp || exit
88  fi  fi
89    
90    if [ ! -x "/usr/local/bin/forever" ] ; then
91            echo "installing forever"
92            npm install -g forever || exit
93    fi
94    
95    if [ ! -x "/usr/local/bin/node-gyp" ] ; then
96            echo "installing node-gyp"
97            npm install -g node-gyp || exit
98    fi
99    
100    if [ ! -d "/usr/local/lib/node_modules/bcrypt" ] ; then
101            echo "installing bcrypt"
102            npm install -g bcrypt || exit
103    fi
104    
105  if [ ! -d "xo-web" ] ; then  if [ ! -d "xo-web" ] ; then
106          git clone -b $BRANCH https://github.com/vatesfr/xo-web.git          git clone -b $BRANCH https://github.com/vatesfr/xo-web.git
# Line 106  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.2961  
changed lines
  Added in v.2986

  ViewVC Help
Powered by ViewVC 1.1.20