From: Michal Ptacek Date: Thu, 16 May 2019 11:07:35 +0000 (+0000) Subject: Preventing installer.sh execution to hang X-Git-Tag: 0.4.0~9^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=9a59345158b8d271b31aec038f0fb032a3d5f383;p=multicloud%2Fk8s.git Preventing installer.sh execution to hang This newgrp command used is not suitable for shell scripting, it looks like misuse as it created new shell under right group but prevents further script execution as it has to be exited first. Change-Id: I974da3a4b8d1e0827c846150079d453789d89554 Issue-ID: MULTICLOUD-632 Signed-off-by: Michal Ptacek --- diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh index c17f89e8..2e7a3db1 100755 --- a/kud/hosting_providers/vagrant/installer.sh +++ b/kud/hosting_providers/vagrant/installer.sh @@ -78,7 +78,6 @@ function _install_docker { echo "DOCKER_OPTS=\"-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock --max-concurrent-downloads $max_concurrent_downloads \"" | sudo tee --append /etc/default/docker if [[ -z $(groups | grep docker) ]]; then sudo usermod -aG docker $USER - newgrp docker fi sudo systemctl restart docker