docker: add --needed flag to pacman in install script
This commit is contained in:
parent
3bb1fb4ac3
commit
e2b42cf6fa
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue