Do not add docker group if it already exists

This commit is contained in:
Cyryl Płotnicki 2016-12-30 20:06:40 +00:00
parent b9d46a3ba0
commit 881002098d

View file

@ -35,7 +35,8 @@ fi
if [[ -z $USER ]]; then
USER=`whoami`
fi
sudo groupadd docker
getent group docker || sudo groupadd docker
sudo usermod -aG docker $USER
# vscode