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
|
#!/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
|
||||||
|
|
Loading…
Reference in a new issue