-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Made the script Docker-compatible + Prevented version failures #690
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5adde2a
Made the script Docker-compatible + Prevented version failures
angeryrohan 257e8a4
[Changed IF condition]: Made the detection dynamic
angeryrohan c46b98b
Added shebang for Codacy Quality Test
angeryrohan aa4e8af
Merge branch 'develop' into develop
agentmilindu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for using
printf
instead ofecho
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy code quality requirement
There is no output difference btw on using echo or printf ^.^