mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
acme: use the hotplug system
Signed-off-by: Glen Huang <heyhgl@gmail.com>
This commit is contained in:
committed by
Toke Høiland-Jørgensen
parent
b02fea131b
commit
e84f651453
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=nginx
|
||||
PKG_VERSION:=1.21.3
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://nginx.org/download/
|
||||
@@ -372,6 +372,9 @@ ifeq ($(CONFIG_NGINX_NAXSI),y)
|
||||
endif
|
||||
$(if $(CONFIG_NGINX_NAXSI),$($(INSTALL_BIN) $(PKG_BUILD_DIR)/nginx-naxsi/naxsi_config/naxsi_core.rules $(1)/etc/nginx))
|
||||
$(if $(CONFIG_NGINX_NAXSI),$(chmod 0640 $(1)/etc/nginx/naxsi_core.rules))
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/acme
|
||||
$(INSTALL_DATA) ./files/acme.hotplug $(1)/etc/hotplug.d/acme/00-nginx
|
||||
endef
|
||||
|
||||
Package/nginx-all-module/install = $(Package/nginx-ssl/install)
|
||||
|
||||
3
net/nginx/files/acme.hotplug
Normal file
3
net/nginx/files/acme.hotplug
Normal file
@@ -0,0 +1,3 @@
|
||||
if [ "$ACTION" = renewed ]; then
|
||||
/etc/init.d/nginx reload
|
||||
fi
|
||||
Reference in New Issue
Block a user