[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
This commit is contained in:
Taoyu Li 2017-03-20 14:04:18 -07:00 committed by Shuotian Cheng
parent 7b7a61693a
commit 7a16e02ec1

View File

@ -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