Created
May 9, 2019 15:35
-
-
Save yedincisenol/95aa0119060f47653ec2437a51d15247 to your computer and use it in GitHub Desktop.
For ubuntu, nginx, supervisor, docker install scripts
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
#!/usr/bin/env bash | |
command=$1 | |
if [ "$command" = "" ]; then | |
echo "Please enter a module in: nginx,supervisor,docker" | |
read command -f | |
fi | |
if [ "$command" = "nginx" ]; then | |
echo "Nginx installing" | |
apt -y install nginx | |
fi | |
if [ "$command" = "supervisor" ]; then | |
echo "Supervisor installing" | |
apt -y install supervisor | |
fi | |
if [ "$command" = "docker" ]; then | |
echo "Docker installing" | |
apt -y install apt-transport-https ca-certificates curl software-properties-common && | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" && | |
apt update && apt-cache policy docker-ce && apt -y install docker-ce && apt -y install docker-compose | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment