diff options
author | Glen Huang <i@glenhuang.com> | 2022-10-16 12:55:07 +0800 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2022-10-18 08:38:07 +0200 |
commit | 1bd63df263c485c0716acda03979d37f4e9d3943 (patch) | |
tree | 2f8aaa47c8a73b97ae318bc39cc7ab6f81b55cef /package/network | |
parent | b58f3c573d9850e6da12bb0dec9445f20a55745d (diff) | |
download | upstream-1bd63df263c485c0716acda03979d37f4e9d3943.tar.gz upstream-1bd63df263c485c0716acda03979d37f4e9d3943.tar.bz2 upstream-1bd63df263c485c0716acda03979d37f4e9d3943.zip |
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>
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/uhttpd/Makefile | 4 | ||||
-rw-r--r-- | package/network/services/uhttpd/files/acme.hotplug | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/package/network/services/uhttpd/Makefile b/package/network/services/uhttpd/Makefile index 36331857fb..3258b70c85 100644 --- a/package/network/services/uhttpd/Makefile +++ b/package/network/services/uhttpd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uhttpd -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/uhttpd.git @@ -113,6 +113,8 @@ define Package/uhttpd/install $(VERSION_SED_SCRIPT) $(1)/etc/config/uhttpd $(INSTALL_DIR) $(1)/usr/sbin $(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 define Package/uhttpd-mod-lua/install diff --git a/package/network/services/uhttpd/files/acme.hotplug b/package/network/services/uhttpd/files/acme.hotplug new file mode 100644 index 0000000000..ace15e09c9 --- /dev/null +++ b/package/network/services/uhttpd/files/acme.hotplug @@ -0,0 +1,3 @@ +if [ "$ACTION" = renewed ]; then + /etc/init.d/uhttpd reload +fi |