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
case "$OSTYPE" in
case $OSTYPE in
darwin*)
brew cask install virtualbox
brew install docker docker-compose docker-machine
;;
linux*)
if [[ -f /etc/arch-release ]]
then
sudo pacman --noconfirm -S docker docker-compose
if [[ -f /etc/arch-release ]]; then
sudo pacman --needed --noconfirm -S docker docker-compose
sudo systemctl enable docker.service
sudo systemctl start docker.service
fi