/[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 2959 by torben, Mon Feb 29 09:49:28 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 49  if [ ! -x "/usr/bin/curl" ] ; then Line 50  if [ ! -x "/usr/bin/curl" ] ; then
50          apt-get install curl || exit          apt-get install curl || exit
51  fi  fi
52    
53    if [ ! -x "/usr/bin/gcc" ] ; then
54            echo "installing build-essential"
55            apt-get install  build-essential || exit
56    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
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
71    fi
72            
73    
74  if [ ! -x "/usr/local/bin/n" ] ; then  if [ ! -x "/usr/local/bin/n" ] ; then
75          echo "installing node.js bootstrap"          echo "installing node.js bootstrap"
76          curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n || exit          curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n || exit
# Line 62  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 -x gulp          npm install -g gulp
88    fi
89    
90    if [ ! -x "/usr/local/bin/forever" ] ; then
91            echo "installing forever"
92            npm install -g forever
93  fi  fi
94    
95    if [ ! -x "/usr/local/bin/node-gyp" ] ; then
96            echo "installing node-gyp"
97            npm install -g node-gyp
98    fi
99    
100    if [ ! -d "/usr/local/lib/node_modules/bcrypt" ] ; then
101            echo "installing bcrypt"
102            npm install -g bcrypt
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 100  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.2959  
changed lines
  Added in v.2985

  ViewVC Help
Powered by ViewVC 1.1.20