From 17d759c7fd69cbccf59d436baa653b326259fc73 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sun, 7 May 2023 13:35:14 +0200 Subject: [PATCH] tang: remove post-installation key generation The keys will be generated on startup. Signed-off-by: Nikos Mavrogiannopoulos --- utils/tang/Makefile | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/utils/tang/Makefile b/utils/tang/Makefile index 005fe4d50c..994d13dc53 100644 --- a/utils/tang/Makefile +++ b/utils/tang/Makefile @@ -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)) -- 2.30.2