rpcd-mod-lxc: add postinst to reload rpcd on update/installation 14162/head
authorKarel Kočí <karel.koci@nic.cz>
Mon, 7 Dec 2020 15:54:11 +0000 (16:54 +0100)
committerKarel Kočí <karel.koci@nic.cz>
Wed, 9 Dec 2020 09:16:37 +0000 (10:16 +0100)
This is dependency of luci-app-lxc and when users install that package
it is no way clear that they have to reload rpcd to get it working
correctly. Without it container listing does not work.
In general this reload should be in this package simply because other
rpcd-mod-* packages reload rpcd as well.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
utils/rpcd-mod-lxc/Makefile

index fc333612c83060cd3cb72b17d7628d4482d968ae..289b2d1241a137d0ab178e6ace8701d544eeebb7 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rpcd-mod-lxc
-PKG_RELEASE=20171206
+PKG_RELEASE=20201208
 
 PKG_LICENSE:=ISC
 
@@ -34,4 +34,9 @@ define Package/rpcd-mod-lxc/install
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/lxc.so $(1)/usr/lib/rpcd/
 endef
 
+define Package/rpcd-mod-lxc/postinst
+#!/bin/sh
+[ -n "$$IPKG_INSTROOT" ] || /etc/init.d/rpcd reload
+endef
+
 $(eval $(call BuildPackage,rpcd-mod-lxc))