tang: remove post-installation key generation
The keys will be generated on startup. Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
parent
c3d09dfaa3
commit
17d759c7fd
|
@ -48,15 +48,4 @@ define Package/tang/install
|
||||||
$(INSTALL_CONF) ./files/config $(1)/etc/config/tang
|
$(INSTALL_CONF) ./files/config $(1)/etc/config/tang
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/tang/postinst
|
|
||||||
#!/bin/sh
|
|
||||||
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
||||||
mkdir -p /usr/share/tang/db
|
|
||||||
KEYS=$(find /usr/share/tang/db/ -name "*.jw*" -maxdepth 1 | wc -l)
|
|
||||||
if [ "${KEYS}" = "0" ]; then # if db is empty generate new key pair
|
|
||||||
/usr/libexec/tangd-keygen /usr/share/tang/db
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,tang))
|
$(eval $(call BuildPackage,tang))
|
||||||
|
|
Loading…
Reference in New Issue