nginx: create empty directory for module.d include
Fix a bug on installation of nginx-mod-luci where module.d directory is not found and luci.module creation fails. Correctly create empty directory for module.d include for dynamic module loading by placing file in this directory. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
1ea13ed8a1
commit
9365622f27
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=nginx
|
PKG_NAME:=nginx
|
||||||
PKG_VERSION:=1.25.0
|
PKG_VERSION:=1.25.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://nginx.org/download/
|
PKG_SOURCE_URL:=https://nginx.org/download/
|
||||||
|
@ -138,6 +138,7 @@ config_files := mime.types \
|
||||||
define Package/nginx-ssl/install
|
define Package/nginx-ssl/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nginx $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/nginx $(1)/usr/sbin/
|
||||||
|
$(INSTALL_DIR) $(1)/etc/nginx/module.d
|
||||||
$(INSTALL_DIR) $(1)/etc/nginx/conf.d
|
$(INSTALL_DIR) $(1)/etc/nginx/conf.d
|
||||||
$(INSTALL_DATA) $(addprefix $(PKG_INSTALL_DIR)/etc/nginx/,$(config_files)) $(1)/etc/nginx/
|
$(INSTALL_DATA) $(addprefix $(PKG_INSTALL_DIR)/etc/nginx/,$(config_files)) $(1)/etc/nginx/
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
|
|
Loading…
Reference in a new issue