tang: remove post-installation key generation
authorNikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Sun, 7 May 2023 11:35:14 +0000 (13:35 +0200)
committerNikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Mon, 28 Aug 2023 16:23:12 +0000 (18:23 +0200)
The keys will be generated on startup.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
utils/tang/Makefile

index 0d24500555f719acdf59a3e4783f9c86a6bdf30a..96a392d02a8f502c5d8ef343ff725328933e7b49 100644 (file)
@@ -50,15 +50,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))