docker: add --needed flag to pacman in install script

This commit is contained in:
Henrik Lissner 2016-11-10 18:38:35 +01:00
parent 3bb1fb4ac3
commit e2b42cf6fa

View file

@ -1,14 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
case "$OSTYPE" in case $OSTYPE in
darwin*) darwin*)
brew cask install virtualbox brew cask install virtualbox
brew install docker docker-compose docker-machine brew install docker docker-compose docker-machine
;; ;;
linux*) linux*)
if [[ -f /etc/arch-release ]] if [[ -f /etc/arch-release ]]; then
then sudo pacman --needed --noconfirm -S docker docker-compose
sudo pacman --noconfirm -S docker docker-compose
sudo systemctl enable docker.service sudo systemctl enable docker.service
sudo systemctl start docker.service sudo systemctl start docker.service
fi fi