config-files: install the init script for lighttpd 75/3475/1
authorJackie Huang <jackie.huang@windriver.com>
Mon, 27 Apr 2020 09:13:55 +0000 (17:13 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Mon, 27 Apr 2020 09:21:37 +0000 (17:21 +0800)
install the init script into /etc/init.d for lighttpd
to align with stx 3.0.

Issue-ID: INF-31
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ia353e9463374c5202a8f23562df51c55376cff2c

meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb

index 4fdfddf..09bf22f 100644 (file)
@@ -358,7 +358,9 @@ pkg_postinst_ontarget_lighttpd-config() {
 
        # /etc/rc.d/init.d/lighttpd is not a config file, so replace it here if it doesn't match
        cp --preserve=xattr -f ${datadir}/starlingx/lighttpd.init ${sysconfdir}/rc.d/init.d/lighttpd
+       cp --preserve=xattr -f ${datadir}/starlingx/lighttpd.init ${sysconfdir}/init.d/lighttpd
        chmod 755 ${sysconfdir}/rc.d/init.d/lighttpd
+       chmod 755 ${sysconfdir}/init.d/lighttpd
 }
 
 pkg_postinst_ontarget_logrotate-config() {