/[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 3225 by torben, Tue Jan 2 12:46:58 2018 UTC revision 3226 by torben, Wed Apr 11 12:44:28 2018 UTC
# Line 94  if [ ! -x "/usr/local/bin/node" ] ; then Line 94  if [ ! -x "/usr/local/bin/node" ] ; then
94          n lts || exit          n lts || exit
95  fi  fi
96    
97  if [ ! -x "/usr/local/bin/gulp" ] ; then  #if [ ! -x "/usr/local/bin/gulp" ] ; then
98          echo "installing gulp"  #       echo "installing gulp"
99          npm install -g gulp || exit  #       npm install -g gulp || exit
100  fi  #fi
101    
102  if [ ! -x "/usr/local/bin/yarn" ] ; then  if [ ! -x "/usr/local/bin/yarn" ] ; then
103          echo "installing yarn"          echo "installing yarn"
# Line 105  if [ ! -x "/usr/local/bin/yarn" ] ; then Line 105  if [ ! -x "/usr/local/bin/yarn" ] ; then
105  fi  fi
106    
107    
108  if [ ! -x "/usr/local/bin/node-gyp" ] ; then  #if [ ! -x "/usr/local/bin/node-gyp" ] ; then
109          echo "installing node-gyp"  #       echo "installing node-gyp"
110          npm install -g node-gyp || exit  #       npm install -g node-gyp || exit
111  fi  #fi
112    
113  if [ ! -d "/usr/local/lib/node_modules/bcrypt" ] ; then  #if [ ! -d "/usr/local/lib/node_modules/bcrypt" ] ; then
114          echo "installing bcrypt"  #       echo "installing bcrypt"
115          npm install -g --unsafe-perm bcrypt || exit  #       npm install -g --unsafe-perm bcrypt || exit
116  fi  #fi
117    
 if [ ! -d "xo-web" ] ; then  
         git clone -b $BRANCH https://github.com/vatesfr/xo-web.git  
 else  
         cd xo-web  
         git pull  
         cd ..  
 fi  
118    
119    
120  if [ ! -d "xo-server" ] ; then  if [ ! -d "xen-orchestra" ] ; then
121          git clone -b $BRANCH https://github.com/vatesfr/xo-server.git          git clone -b $BRANCH https://github.com/vatesfr/xen-orchestra.git
122  else  else
123          cd xo-server          cd xen-orchestra
124          git pull          git pull
125          cd ..          cd ..
126  fi  fi
127    
128    
 # xo-server  
 echo "building xo-server"  
 cd xo-server  
         yarn  
         npm run build  
 cd ..  
129    
130    
131    # xo-server
132  #xo-web  echo "building xen-orchestra"
133  echo "building xo-web"  cd xen-orchestra
 cd xo-web  
134          yarn          yarn
135          npm run build          yarn build
136  cd ..  cd ..
137    
138    
139    
140  dir=`dirname $0`  dir=`dirname $0`
141    
142  if [ ! -f "/etc/xo-server/config.yaml" ] ; then  if [ ! -f "/etc/xo-server/config.yaml" ] ; then

Legend:
Removed from v.3225  
changed lines
  Added in v.3226

  ViewVC Help
Powered by ViewVC 1.1.20