Skip to content

Commit

Permalink
[scripts] install mongodb after nodejs and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ar2rsawseen committed Dec 16, 2016
1 parent d241105 commit 0fb3f0d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions bin/countly.install_rhel.sh
Expand Up @@ -33,9 +33,6 @@ gpgcheck=0
enabled=1" > /etc/yum.repos.d/nginx.repo
fi

#install mongodb
bash $DIR/scripts/mongodb.install.sh

#install nodejs
curl -sL https://rpm.nodesource.com/setup_6.x | bash -
yum install -y nodejs
Expand Down Expand Up @@ -74,6 +71,9 @@ service sendmail start
#install grunt
( cd $DIR/.. ; npm install -g grunt-cli --unsafe-perm )

#install mongodb
bash $DIR/scripts/mongodb.install.sh

#configure and start nginx
cp $DIR/config/nginx.server.conf /etc/nginx/conf.d/default.conf
service nginx restart
Expand Down
6 changes: 3 additions & 3 deletions bin/countly.install_travis.sh
Expand Up @@ -37,9 +37,6 @@ wget -qO- https://deb.nodesource.com/setup_6.x | bash -
#update g++ to 4.8
add-apt-repository ppa:ubuntu-toolchain-r/test -y

#install mongodb
#bash $DIR/scripts/mongodb.install.sh

#update once more after adding new repos
apt-get update

Expand All @@ -66,6 +63,9 @@ apt-get -y install supervisor || (echo "Failed to install supervisor." ; exit)
#install grunt & npm modules
( cd $DIR/.. ; npm install -g grunt-cli --unsafe-perm ; npm install )

#install mongodb
#bash $DIR/scripts/mongodb.install.sh

#configure and start nginx
cp /etc/nginx/sites-enabled/default $DIR/config/nginx.default.backup
cp $DIR/config/nginx.server.conf /etc/nginx/sites-enabled/default
Expand Down
6 changes: 3 additions & 3 deletions bin/countly.install_ubuntu.sh
Expand Up @@ -31,9 +31,6 @@ fi
#echo | apt-add-repository ppa:chris-lea/node.js
wget -qO- https://deb.nodesource.com/setup_6.x | bash -

#install mongodb
bash $DIR/scripts/mongodb.install.sh

#update once more after adding new repos
apt-get update

Expand All @@ -56,6 +53,9 @@ apt-get -y install sendmail
#install grunt & npm modules
( cd $DIR/.. ; npm install -g grunt-cli --unsafe-perm ; npm install )

#install mongodb
bash $DIR/scripts/mongodb.install.sh

#configure and start nginx
cp /etc/nginx/sites-enabled/default $DIR/config/nginx.default.backup
cp $DIR/config/nginx.server.conf /etc/nginx/sites-enabled/default
Expand Down
6 changes: 3 additions & 3 deletions bin/countly.user.install.sh
Expand Up @@ -31,9 +31,6 @@ fi
#echo | apt-add-repository ppa:chris-lea/node.js
wget -qO- https://deb.nodesource.com/setup_6.x | bash -

#install mongodb
bash $DIR/scripts/mongodb.install.sh

#update once more after adding new repos
apt-get update

Expand All @@ -53,6 +50,9 @@ apt-get -y install sendmail
#install grunt & npm modules
( cd $DIR/.. ; npm install -g grunt-cli --unsafe-perm ; npm install )

#install mongodb
bash $DIR/scripts/mongodb.install.sh

#configure and start nginx
cp /etc/nginx/sites-enabled/default $DIR/config/nginx.default.backup
cp $DIR/config/nginx.server.conf /etc/nginx/sites-enabled/default
Expand Down

0 comments on commit 0fb3f0d

Please sign in to comment.