scripts: add build_stx.sh to support StarlingX build
[pti/rtp.git] / scripts / meta-patches / src_stx / meta-cloud-services / 0005-Fix-postinstall-scriptlets-to-ontarget.patch
1 From 888c8f594b3b56a374710b06bf5f32fc8aaf06c8 Mon Sep 17 00:00:00 2001
2 From: "Sar Ashki, Babak" <Babak.SarAshki@windriver.com>
3 Date: Thu, 23 Jan 2020 14:33:13 -0800
4 Subject: [PATCH 5/5] Fix postinstall scriptlets to ontarget
5
6 rootfs assembly fails without this patch
7 ---
8  meta-openstack/recipes-devtools/python/python-horizon_git.bb | 9 ++-------
9  1 file changed, 2 insertions(+), 7 deletions(-)
10
11 diff --git a/meta-openstack/recipes-devtools/python/python-horizon_git.bb b/meta-openstack/recipes-devtools/python/python-horizon_git.bb
12 index fa831cb..098604c 100644
13 --- a/meta-openstack/recipes-devtools/python/python-horizon_git.bb
14 +++ b/meta-openstack/recipes-devtools/python/python-horizon_git.bb
15 @@ -158,13 +158,8 @@ do_install_append() {
16      ln -fs openstack_dashboard/static ${DASHBOARD_SHARE_DIR}/static
17  }
18  
19 -pkg_postinst_${SRCNAME} () {
20 -    if [ -n "$D" ]; then
21 -        exit 1
22 -    else
23 -        # Regenerate the django static files
24 -        sudo -u horizon /usr/bin/env python ${datadir}/openstack-dashboard/manage.py collectstatic --noinput --clear 
25 -    fi
26 +pkg_postinst_ontarget_${SRCNAME} () {
27 +       sudo -u horizon /usr/bin/env python ${datadir}/openstack-dashboard/manage.py collectstatic --noinput --clear
28  }
29  
30  PACKAGES += "${SRCNAME}-tests ${SRCNAME} ${SRCNAME}-apache ${SRCNAME}-standalone"
31 -- 
32 2.7.4
33