-
-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #690 from rohancl/develop
Made the script Docker-compatible + Prevented version failures
- Loading branch information
Showing
2 changed files
with
47 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,44 @@ | ||
#!/bin/bash | ||
|
||
echo "Installing pip" | ||
sudo apt-get install -y python3-pip | ||
echo "pip installed" | ||
|
||
echo "Installing setuptools" | ||
sudo apt-get install -y python3-setuptools | ||
echo "pip installed" | ||
|
||
echo "Installing Aria2" | ||
sudo apt-get install -y aria2 | ||
echo "Aria2 installed" | ||
|
||
echo "Installing mysql-server" | ||
sudo apt-get install -y mysql-server | ||
echo "mysql-server installed" | ||
|
||
echo "Installing libmysqlclient" | ||
sudo apt-get install libmysqlclient-dev | ||
echo "libmysqlclient installed" | ||
|
||
echo "Installing node" | ||
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | ||
sudo apt-get install -y nodejs | ||
echo "NodeJS installed" | ||
|
||
echo "Installing bower globally" | ||
sudo npm install -g bower | ||
echo "bower installed" | ||
|
||
echo "Installing gulp globally" | ||
sudo npm install -g gulp | ||
echo "gulp installed" | ||
|
||
# save the directory for further uses | ||
pwd > main_directory.txt | ||
|
||
echo "Adding path to bashrc file" | ||
main_file="main_directory.txt" | ||
main_directory="" | ||
while IFS= read line | ||
do | ||
echo "$line" | ||
main_directory=$line | ||
done <"$main_file" | ||
rm -rf main_directory.txt | ||
echo "export PATH=\"$main_directory:$""PATH\"" | sudo tee -a ~/.bashrc > /dev/null | ||
source ~/.bashrc | ||
#!/bin/sh | ||
if ! [ $(id -u) = 0 ]; then | ||
printf "Please run as root to proceed with installations... \n1. Type in: su\n2. Enter your password\n3. Execute: sh setup.sh\n" | ||
|
||
else | ||
echo "Starting Installation..." | ||
|
||
echo "Udating package list and Pre-installed package versions" | ||
apt-get update && apt-get upgrade | ||
echo "All packages now updated and ready to be used" | ||
|
||
echo "Installing pip" | ||
apt-get install -y python3-pip | ||
echo "pip installed" | ||
|
||
echo "Installing setuptools" | ||
apt-get install -y python3-setuptools | ||
echo "pip installed" | ||
|
||
echo "Installing Aria2" | ||
apt-get install -y aria2 | ||
echo "Aria2 installed" | ||
|
||
echo "Installing mysql-server" | ||
apt-get install -y mysql-server | ||
echo "mysql-server installed" | ||
|
||
echo "Installing libmysqlclient" | ||
apt-get install libmysqlclient-dev | ||
echo "libmysqlclient installed" | ||
|
||
echo "Installing node" | ||
curl -sL https://deb.nodesource.com/setup_6.x | ||
apt-get install -y nodejs | ||
echo "NodeJS installed" | ||
|
||
echo "Installing bower globally" | ||
npm install -g bower | ||
echo "bower installed" | ||
|
||
echo "Installing gulp globally" | ||
npm install -g gulp | ||
echo "gulp installed" | ||
fi |