From 7a16e02ec158943500f56e75550afb7ba2856108 Mon Sep 17 00:00:00 2001 From: Taoyu Li Date: Mon, 20 Mar 2017 14:04:18 -0700 Subject: [PATCH] [cfggen]: Fix the path to sonic-cfggen due to the path change in #388 (#416) The path moved from /usr/bin/ to /usr/local/bin due to the installation change from deb to whl --- files/build_templates/docker_image_ctl.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/build_templates/docker_image_ctl.j2 b/files/build_templates/docker_image_ctl.j2 index 5a75347191..be62b43515 100644 --- a/files/build_templates/docker_image_ctl.j2 +++ b/files/build_templates/docker_image_ctl.j2 @@ -1,8 +1,8 @@ #!/bin/bash # Obtain our platform and HWSKU as we will mount directories with these names in each docker -PLATFORM=`/usr/bin/sonic-cfggen -v platform` -HWSKU=`/usr/bin/sonic-cfggen -m /etc/sonic/minigraph.xml -v minigraph_hwsku` +PLATFORM=`sonic-cfggen -v platform` +HWSKU=`sonic-cfggen -m /etc/sonic/minigraph.xml -v minigraph_hwsku` start() { docker inspect --type container {{docker_container_name}} &>/dev/null