/[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 3184 by torben, Tue Jan 3 15:01:59 2017 UTC revision 3194 by torben, Mon Mar 20 21:54:00 2017 UTC
# Line 40  if [ $total -le 1536 ] ; then Line 40  if [ $total -le 1536 ] ; then
40  fi  fi
41    
42  if [ "$1" == "clean" ] ; then  if [ "$1" == "clean" ] ; then
43            echo cleaning global npm packages
44            npm uninstall -g gulp
45            npm uninstall -g node-gyp
46            npm uninstall -g forever
47            npm uninstall -g bcrypt
48    
49          echo cleaning xo-web          echo cleaning xo-web
50          rm -rf xo-web          rm -rf xo-web
51    
# Line 170  cd .. Line 176  cd ..
176  echo "building xo-web"  echo "building xo-web"
177  cd xo-web  cd xo-web
178          npm install --unsafe-perm || exit          npm install --unsafe-perm || exit
179            #npm install || exit
180          npm run build || exit          npm run build || exit
181  cd ..  cd ..
182    
# Line 190  cd .. Line 197  cd ..
197  #       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
198  #fi  #fi
199    
200    dir=`dirname $0`
201    
202  if [ ! -f "/etc/xo-server/config.yaml" ] ; then  if [ ! -f "/etc/xo-server/config.yaml" ] ; then
203          if  [ ! -d "/etc/xo-server" ] ; then          if  [ ! -d "/etc/xo-server" ] ; then
204                  mkdir /etc/xo-server                  mkdir /etc/xo-server
205          fi          fi
206            copy $dir/config.yaml /etc/xo-server/config.yaml
         echo "please setup /etc/xo-server/config.yaml"  
         exit  
207  fi  fi
208    
209  echo Installing plugins  echo Installing plugins

Legend:
Removed from v.3184  
changed lines
  Added in v.3194

  ViewVC Help
Powered by ViewVC 1.1.20