uhttpd: use acme hotplug
Reload uhttpd after certificates are renewed with acme. Reviewed-by: Toke Høiland-Jørgensen <toke@toke.dk> Signed-off-by: Glen Huang <i@glenhuang.com>
This commit is contained in:
parent
b58f3c573d
commit
1bd63df263
2 changed files with 6 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=uhttpd
|
PKG_NAME:=uhttpd
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/uhttpd.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/uhttpd.git
|
||||||
|
@ -113,6 +113,8 @@ define Package/uhttpd/install
|
||||||
$(VERSION_SED_SCRIPT) $(1)/etc/config/uhttpd
|
$(VERSION_SED_SCRIPT) $(1)/etc/config/uhttpd
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uhttpd $(1)/usr/sbin/uhttpd
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uhttpd $(1)/usr/sbin/uhttpd
|
||||||
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/acme
|
||||||
|
$(INSTALL_DATA) ./files/acme.hotplug $(1)/etc/hotplug.d/acme/00-uhttpd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/uhttpd-mod-lua/install
|
define Package/uhttpd-mod-lua/install
|
||||||
|
|
3
package/network/services/uhttpd/files/acme.hotplug
Normal file
3
package/network/services/uhttpd/files/acme.hotplug
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
if [ "$ACTION" = renewed ]; then
|
||||||
|
/etc/init.d/uhttpd reload
|
||||||
|
fi
|
Loading…
Reference in a new issue