soyuka

Untitled

Oct 27th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. #!/bin/bash
  2. ###################################################
  3. # ___ ___ ___ ___ ___ ___ _ _ ___ #
  4. # ( _)(_ )/ __)( _)( _)( \ ( )( )(__ \ #
  5. # ) _) / / \__ \ ) _) ) _) ) ) ) \\// / __/ #
  6. # (___)(___)(___/(___)(___)(___/ (__) \___) #
  7. # © soyuka #
  8. ###################################################
  9.  
  10. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  11.  
  12.  
  13. apt-get update
  14. apt-get upgrade -y
  15.  
  16. # Dependecies
  17. # whois = mkpasswd
  18. apt-get install git-core curl build-essential openssl libssl-dev whois python inotify-tools nginx php5-fpm -y
  19.  
  20. #Install node js
  21. git clone https://github.com/joyent/node.git
  22. cd node
  23.  
  24. # 'git tag' shows all available versions: select the latest stable.
  25. git checkout v0.10.21
  26.  
  27. # Configure seems not to find libssl by default so we give it an explicit pointer.
  28. # Optionally: you can isolate node by adding --prefix=/opt/node
  29. ./configure --openssl-libpath=/usr/lib/ssl
  30. make
  31. make test
  32.  
  33. make install
  34.  
  35. cd $DIR
  36.  
  37. rm -r node
  38.  
  39. # it's alive ?
  40. if [ -z $(node -v) && -z $(npm -v) ]
  41. then
  42. exit 0
  43. else
  44. npm install [email protected] -g #to be changed
  45. mkdir /var/log/ezseed
  46. mkdir /var/www
  47. cp -R $DIR /var/www/ezseed2
  48. mkdir /var/www/ezseed2/app/public/tmp
  49. chmod 775 /var/www/ezseed2/app/public/tmp
  50. cd /var/www/ezseed2/ && npm install --save
  51.  
  52. echo "You might delete this rep : 'cd .. && rm -R ezseed\n"
  53. echo "Then please exec 'cd /var/www/ezseed' and start installation : ./ezseed install -h"
  54. fi
Advertisement
Add Comment
Please, Sign In to add comment