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:
Nikos Mavrogiannopoulos 2023-05-07 13:35:14 +02:00
parent c3d09dfaa3
commit 17d759c7fd
1 changed files with 0 additions and 11 deletions

View File

@ -48,15 +48,4 @@ define Package/tang/install
$(INSTALL_CONF) ./files/config $(1)/etc/config/tang
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))