From cb499a689b6d2d8325c83b8f34299bc8e2f128d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Wed, 1 Feb 2017 17:19:07 +0100 Subject: [PATCH] docker: fix mkdir path for all the distros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On ubntu systems mkdir is in /bin where on atomic it is /usr/bin/. We use the shell built-in function "command" to find its right location. Signed-off-by: Sébastien Han --- roles/ceph-mon/templates/ceph-mon.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-mon/templates/ceph-mon.service.j2 b/roles/ceph-mon/templates/ceph-mon.service.j2 index a9f41a923..1815015c5 100644 --- a/roles/ceph-mon/templates/ceph-mon.service.j2 +++ b/roles/ceph-mon/templates/ceph-mon.service.j2 @@ -5,7 +5,7 @@ After=docker.service [Service] EnvironmentFile=-/etc/environment ExecStartPre=-/usr/bin/docker rm %i -ExecStartPre=/usr/bin/mkdir -p /etc/ceph /var/lib/ceph/mon +ExecStartPre=$(command -v mkdir) -p /etc/ceph /var/lib/ceph/mon ExecStart=/usr/bin/docker run --rm --name %i --net=host \ {% if not mon_containerized_deployment_with_kv -%} -v /var/lib/ceph:/var/lib/ceph \