/[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 2956 by torben, Mon Feb 29 09:26:49 2016 UTC revision 2962 by torben, Mon Feb 29 10:09:34 2016 UTC
# Line 43  if [ "$1" == "clean" ] ; then Line 43  if [ "$1" == "clean" ] ; then
43          exit          exit
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    
63    if [ ! -x "/usr/local/bin/n" ] ; then
64            echo "installing node.js bootstrap"
65            curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n || exit
66            chmod +x /usr/local/bin/n
67    fi
68    
69    if [ ! -x "/usr/local/bin/node" ] ; then
70            echo "installing node.js"
71            n stable || exit
72    fi
73    
74    if [ ! -x "/usr/local/bin/gulp" ] ; then
75            echo "installing gulp"
76            npm install -g gulp
77    fi
78    
79    
80    
81  if [ ! -d "xo-web" ] ; then  if [ ! -d "xo-web" ] ; then
82          git clone -b $BRANCH https://github.com/vatesfr/xo-web.git          git clone -b $BRANCH https://github.com/vatesfr/xo-web.git
83  else  else
# Line 62  fi Line 97  fi
97    
98    
99  # xo-server  # xo-server
100    echo "building xo-server"
101  cd xo-server  cd xo-server
102  npm install --unsafe-perm || exit  npm install || exit
103  npm run build || exit  npm run build || exit
104  cd ..  cd ..
105    
106    
107  #xo-web  #xo-web
108    echo "building xo-web"
109  cd xo-web  cd xo-web
110  npm install --unsafe-perm || exit  npm install --unsafe-perm || exit
111  npm run build || exit  npm run build || exit

Legend:
Removed from v.2956  
changed lines
  Added in v.2962

  ViewVC Help
Powered by ViewVC 1.1.20