Merge "Delete docker socket file only if exists"

This commit is contained in:
Jenkins 2017-05-05 15:17:03 +00:00 committed by Gerrit Code Review
commit f5e12cfdf0
1 changed files with 3 additions and 1 deletions

View File

@ -277,7 +277,9 @@ function stop_docker {
echo -n "."
sleep 1
done
sudo rm "$KURYR_DOCKER_ENGINE_SOCKET_FILE"
if [ -e "$KURYR_DOCKER_ENGINE_SOCKET_FILE" ]; then
sudo rm "$KURYR_DOCKER_ENGINE_SOCKET_FILE"
fi
}
function get_hyperkube_container_cacert_setup_dir {