]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: update podman detection 41605/head
authorMisono Tomohiro <misono.tm@gmail.com>
Mon, 31 May 2021 11:58:53 +0000 (20:58 +0900)
committerMisono Tomohiro <misono.tm@gmail.com>
Mon, 31 May 2021 12:00:10 +0000 (21:00 +0900)
Since it is possible there is no podman process running when launching
vstart, use 'command -v' instead of 'pgrep -f'.

Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
src/vstart.sh

index c7797025d688cf22c7222052fd7c2994074acf6f..2d5e88975785292ee57a95872cbe506d265a7f42 100755 (executable)
@@ -1596,7 +1596,7 @@ fi
  docker_service(){
      local service=''
      #prefer podman
-     if pgrep -f podman > /dev/null; then
+     if command -v podman > /dev/null; then
         service="podman"
      elif pgrep -f docker > /dev/null; then
         service="docker"