From bba1c73c02d8ec86354242eae237a4d3be8caa6c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Jun 09 2015 19:06:06 +0000 Subject: Test for socket being writable, not just existing The current system really only works if building the RPM as root (ewww) or if your user is in the `docker` group, which we discourage in favor of sudo. I'm not sure how to plumb through sudo, but anyways it's more accurate to test writability. Signed-off-by: Lokesh Mandvekar --- diff --git a/docker.spec b/docker.spec index 8a5b7dd..eef0f3a 100644 --- a/docker.spec +++ b/docker.spec @@ -433,7 +433,7 @@ install -p -m 644 docker-storage-setup.1 %{buildroot}%{_mandir}/man1 popd %check -[ ! -e /run/%{repo}.sock ] || { +[ ! -w /run/%{repo}.sock ] || { mkdir test_dir pushd test_dir git clone https://%{import_path}