From: Nikos Mavrogiannopoulos Date: Thu, 9 Nov 2023 19:06:34 +0000 (+0100) Subject: tang: set the right permissions to keys X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7d77c4d401b4292218c4276b5a20eb0cfa239c1e;p=feed%2Fpackages.git tang: set the right permissions to keys Resolves: #22632 Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/utils/tang/Makefile b/utils/tang/Makefile index f7e6d04b16..89af1cbe65 100644 --- a/utils/tang/Makefile +++ b/utils/tang/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tang PKG_VERSION:=14 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://github.com/latchset/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/ diff --git a/utils/tang/files/tang.init b/utils/tang/files/tang.init index ea4045f2e1..efcd3f2ccf 100644 --- a/utils/tang/files/tang.init +++ b/utils/tang/files/tang.init @@ -8,6 +8,7 @@ start_service() { if [ -z "${KEYS}" ] || [ "${KEYS}" = "0" ]; then # if db is empty generate new key pair mkdir -p /usr/share/tang/db /usr/sbin/tangd-keygen /usr/share/tang/db + chown -R tang /usr/share/tang/db fi config_load "tang"