From: Nikos Mavrogiannopoulos Date: Sun, 7 May 2023 11:35:14 +0000 (+0200) Subject: tang: remove post-installation key generation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a6265258f8fe7de8801d53dd41aaa1600f03b958;p=feed%2Fpackages.git tang: remove post-installation key generation The keys will be generated on startup. Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/utils/tang/Makefile b/utils/tang/Makefile index 0d24500555..96a392d02a 100644 --- a/utils/tang/Makefile +++ b/utils/tang/Makefile @@ -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))