Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ###################################################
- # ___ ___ ___ ___ ___ ___ _ _ ___ #
- # ( _)(_ )/ __)( _)( _)( \ ( )( )(__ \ #
- # ) _) / / \__ \ ) _) ) _) ) ) ) \\// / __/ #
- # (___)(___)(___/(___)(___)(___/ (__) \___) #
- # © soyuka #
- ###################################################
- DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
- apt-get update
- apt-get upgrade -y
- # Dependecies
- # whois = mkpasswd
- apt-get install git-core curl build-essential openssl libssl-dev whois python inotify-tools nginx php5-fpm -y
- #Install node js
- git clone https://github.com/joyent/node.git
- cd node
- # 'git tag' shows all available versions: select the latest stable.
- git checkout v0.10.21
- # Configure seems not to find libssl by default so we give it an explicit pointer.
- # Optionally: you can isolate node by adding --prefix=/opt/node
- ./configure --openssl-libpath=/usr/lib/ssl
- make
- make test
- make install
- cd $DIR
- rm -r node
- # it's alive ?
- if [ -z $(node -v) && -z $(npm -v) ]
- then
- exit 0
- else
- npm install [email protected] -g #to be changed
- mkdir /var/log/ezseed
- mkdir /var/www
- cp -R $DIR /var/www/ezseed2
- mkdir /var/www/ezseed2/app/public/tmp
- chmod 775 /var/www/ezseed2/app/public/tmp
- cd /var/www/ezseed2/ && npm install --save
- echo "You might delete this rep : 'cd .. && rm -R ezseed\n"
- echo "Then please exec 'cd /var/www/ezseed' and start installation : ./ezseed install -h"
- fi
Advertisement
Add Comment
Please, Sign In to add comment