Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- verifica=$(dpkg -l | grep "docker" | grep -v grep)
- if test "$verifica"
- then
- echo "Docker instalado na sua estação"
- else
- echo "Ou o docker não foi encontrado ou existe algo de errado no seu script"
- echo "Tentando instalar o docker"
- #Comandos de atualização e instalação
- apt-get update -y && apt-get upgrade -y
- #Comando de instalação
- curl -fsSL https://get.docker.com/ | sh /dev/null
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement