mirror of
https://github.com/openwrt/luci
synced 2025-01-08 12:08:04 +08:00
luci.mk: Only install a default post-install script if there is none defined
If a postinst script is defined in the package Makefile, it will not be included because it will be replaced by the default postinst script. To solve the problem, we now check, if we have a postinst script. And if so, it will be installed instead of the default postinst script. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
151787b561
commit
b448008b47
2
luci.mk
2
luci.mk
@ -231,6 +231,7 @@ define Package/$(PKG_NAME)/postinst
|
||||
}
|
||||
endef
|
||||
else
|
||||
ifndef Package/$(PKG_NAME)/postinst
|
||||
define Package/$(PKG_NAME)/postinst
|
||||
[ -n "$${IPKG_INSTROOT}" ] || {
|
||||
rm -f /tmp/luci-indexcache
|
||||
@ -239,6 +240,7 @@ define Package/$(PKG_NAME)/postinst
|
||||
}
|
||||
endef
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
LUCI_BUILD_PACKAGES := $(PKG_NAME)
|
||||
|
Loading…
Reference in New Issue
Block a user