cgts-client: add missing bash_completion file 17/3717/1
authorJackie Huang <jackie.huang@windriver.com>
Fri, 15 May 2020 09:28:26 +0000 (17:28 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Fri, 15 May 2020 15:37:46 +0000 (23:37 +0800)
Issue-ID: INF-117
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I7160bd4b8c2864e638f32953c32dddd61ad6256f

meta-stx/recipes-core/stx-config/cgts-client.inc

index dcefd54..cab7052 100644 (file)
@@ -42,10 +42,14 @@ do_compile_append() {
 do_install_append() {
        cd ${S}/sysinv/cgts-client/cgts-client
        distutils_do_install
+
+       install -d -m 755 ${D}/${sysconfdir}/bash_completion.d
+       install -p -D -m 664 tools/system.bash_completion ${D}/${sysconfdir}/bash_completion.d/system.bash_completion
 }
 
 FILES_cgts-client = " \
        ${bindir}/system \
+       ${sysconfdir}/bash_completion.d/ \
        ${PYTHON_SITEPACKAGES_DIR}/sysinv/ \
        ${PYTHON_SITEPACKAGES_DIR}/cgtsclient/ \
        ${PYTHON_SITEPACKAGES_DIR}/cgtsclient-*.egg-info \