/[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 2957 by torben, Mon Feb 29 09:39:36 2016 UTC revision 2980 by torben, Sat Mar 19 08:19:53 2016 UTC
# Line 44  if [ "$1" == "clean" ] ; then Line 44  if [ "$1" == "clean" ] ; then
44  fi  fi
45    
46    
47    if [ ! -x "/usr/bin/curl" ] ; then
48            echo "installing curl"
49            apt-get install curl || exit
50    fi
51    
52    if [ ! -x "/usr/bin/gcc" ] ; then
53            echo "installing build-essential"
54            apt-get install  build-essential || exit
55    fi
56    
57    if [ ! -x "/usr/bin/redis-server" ] ; then
58            echo "installing redis-server"
59            apt-get install  redis-server || exit
60    fi
61    
62    if [ ! -x "/usr/bin/git" ] ; then
63            echo "installing git"
64            apt-get install git
65    fi
66            
67    
68  if [ ! -x "/usr/local/bin/n" ] ; then  if [ ! -x "/usr/local/bin/n" ] ; then
69          echo "installing node.js bootstrap"          echo "installing node.js bootstrap"
70          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 52  fi Line 73  fi
73    
74  if [ ! -x "/usr/local/bin/node" ] ; then  if [ ! -x "/usr/local/bin/node" ] ; then
75          echo "installing node.js"          echo "installing node.js"
76          n stable          n stable || exit
77  fi  fi
78    
79    if [ ! -x "/usr/local/bin/gulp" ] ; then
80            echo "installing gulp"
81            npm install -g gulp
82    fi
83    
84    if [ ! -x "/usr/local/bin/forever" ] ; then
85            echo "installing forever"
86            npm install -g forever
87    fi
88    
89    if [ ! -x "/usr/local/bin/node-gyp" ] ; then
90            echo "installing node-gyp"
91            npm install -g node-gyp
92    fi
93    
94    npm install -g bcrypt
95    
96  if [ ! -d "xo-web" ] ; then  if [ ! -d "xo-web" ] ; then
97          git clone -b $BRANCH https://github.com/vatesfr/xo-web.git          git clone -b $BRANCH https://github.com/vatesfr/xo-web.git
# Line 76  fi Line 112  fi
112    
113    
114  # xo-server  # xo-server
115    echo "building xo-server"
116  cd xo-server  cd xo-server
117  npm install --unsafe-perm || exit  npm install || exit
118  npm run build || exit  npm run build || exit
119  cd ..  cd ..
120    
121    
122  #xo-web  #xo-web
123    echo "building xo-web"
124  cd xo-web  cd xo-web
125  npm install --unsafe-perm || exit  npm install --unsafe-perm || exit
126  npm run build || exit  npm run build || exit

Legend:
Removed from v.2957  
changed lines
  Added in v.2980

  ViewVC Help
Powered by ViewVC 1.1.20