Skip to content
Permalink
Browse files

Easy Installation

  • Loading branch information...
Mitesh Shah Mitesh Shah
Mitesh Shah authored and Mitesh Shah committed Mar 1, 2013
1 parent c04fb7c commit 1cec5b5ac69c9baf141e19f74343be5104e871e2
Showing with 55 additions and 33 deletions.
  1. +6 −3 install.sh
  2. +16 −10 setup/debian.sh
  3. +16 −10 setup/redhat.sh
  4. +17 −10 setup/ubuntu.sh
@@ -27,15 +27,18 @@ if [ "$KERNEL" = "Linux" ]
then
if [ -f /etc/redhat-release ] || [ -f /etc/centos-release ]
then
sudo bash setup/redhat.sh
wget -c https://raw.github.com/rtCamp/media-node/master/setup/redhat.sh
sudo bash redhat.sh

elif [ -f /etc/lsb-release ]
then
sudo bash setup/ubuntu.sh
wget -c https://raw.github.com/rtCamp/media-node/master/setup/ubuntu.sh
sudo bash ubuntu.sh

elif [ -f /etc/debian_version ]
then
sudo bash setup/debian.sh
wget -c https://raw.github.com/rtCamp/media-node/master/setup/debian.sh
sudo bash debian.sh
fi

else
@@ -23,13 +23,13 @@ OwnError()


# Save The Base Directory Path
pwd | grep setup &> /dev/null
if [ $? -eq 0 ]
then
BASEDIR=$(cd ..; pwd)
else
BASEDIR=$(pwd)
fi
#pwd | grep setup &> /dev/null
#if [ $? -eq 0 ]
#then
# BASEDIR=$(cd ..; pwd)
#else
# BASEDIR=$(pwd)
#fi


# Remove Any Existing Packages
@@ -208,10 +208,16 @@ echo -e "\033[34m Installing Sqlite3 Node Module... \e[0m"
npm install sqlite3 || OwnError "Unable To Install Sqlite3 Node Module"

# Copy Media Node Files
#clear
#cd $MNDIR
#cp -rv $BASEDIR/* . || OwnError "Unable To Copy Media Node Files"
#cp -rv $BASEDIR/.* . || OwnError "Unable To Copy Media Node Files"
clear
cd $MNDIR
cp -rv $BASEDIR/* . || OwnError "Unable To Copy Media Node Files"
cp -rv $BASEDIR/.* . || OwnError "Unable To Copy Media Node Files"
cd /tmp
git clone git://github.com/rtCamp/media-node.git
cp -rv media-node/* $MNDIR/ || OwnError "Unable To Copy Media Node Files :("
cp -rv media-node/.* $MNDIR/ || OwnError "Unable To Copy Media Node Files :("


# Adding Crontab Entry
echo "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" >> /var/spool/cron/crontabs/root || OwnError "Unable To Install Crontabs"
@@ -23,13 +23,13 @@ OwnError()


# Save The Base Directory Path
pwd | grep setup &> /dev/null
if [ $? -eq 0 ]
then
BASEDIR=$(cd ..; pwd)
else
BASEDIR=$(pwd)
fi
#pwd | grep setup &> /dev/null
#if [ $? -eq 0 ]
#then
# BASEDIR=$(cd ..; pwd)
#else
# BASEDIR=$(pwd)
#fi


# Remove Any Existing Packages
@@ -223,10 +223,16 @@ echo -e "\033[34m Installing Sqlite3 Node Module... \e[0m"
npm install sqlite3 || OwnError "Unable To Install Sqlite3 Node Module"

# Copy Media Node Files
#clear
#cd $MNDIR
#cp -rv $BASEDIR/* . || OwnError "Unable To Copy Media Node Files"
#cp -rv $BASEDIR/.* . || OwnError "Unable To Copy Media Node Files"
clear
cd $MNDIR
cp -rv $BASEDIR/* . || OwnError "Unable To Copy Media Node Files"
cp -rv $BASEDIR/.* . || OwnError "Unable To Copy Media Node Files"
cd /tmp
git clone git://github.com/rtCamp/media-node.git
cp -rv media-node/* $MNDIR/ || OwnError "Unable To Copy Media Node Files :("
cp -rv media-node/.* $MNDIR/ || OwnError "Unable To Copy Media Node Files :("


# Adding Crontab Entry
echo "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" >> /var/spool/cron/root || OwnError "Unable To Install Crontabs"
@@ -9,13 +9,13 @@
# 6. Ubuntu 12.04 Desktop/Server


pwd | grep setup &> /dev/null
if [ $? -eq 0 ]
then
BASEDIR=$(cd ..; pwd)
else
BASEDIR=$(pwd)
fi
#pwd | grep setup &> /dev/null
#if [ $? -eq 0 ]
#then
# BASEDIR=$(cd ..; pwd)
#else
# BASEDIR=$(pwd)
#fi
#echo $BASEDIR
#exit 0;
#mkdir $MNDIR || OwnError "Unable To Create $MNDIR :("
@@ -455,10 +455,17 @@ echo -e "\033[34m Installing Sqlite3 Node Module... \e[0m"
npm install sqlite3 || OwnError "Unable To Install Sqlite3 Node Module :("

# Copy Media Node Files
#clear
#cd $MNDIR
#cp -rv $BASEDIR/* . || OwnError "Unable To Copy Media Node Files :("
#cp -rv $BASEDIR/.* . || OwnError "Unable To Copy Media Node Files :("
clear
cd $MNDIR
cp -rv $BASEDIR/* . || OwnError "Unable To Copy Media Node Files :("
cp -rv $BASEDIR/.* . || OwnError "Unable To Copy Media Node Files :("
cd /tmp
git clone git://github.com/rtCamp/media-node.git
cp -rv media-node/* $MNDIR/ || OwnError "Unable To Copy Media Node Files :("
cp -rv media-node/.* $MNDIR/ || OwnError "Unable To Copy Media Node Files :("



# Adding Crontab Entry
echo "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" >> /var/spool/cron/crontabs/root || OwnError "Unable To Install Crontabs :("

0 comments on commit 1cec5b5

Please sign in to comment.
You can’t perform that action at this time.