tang: set the right permissions to keys 22634/head
authorNikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Thu, 9 Nov 2023 19:06:34 +0000 (20:06 +0100)
committerNikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Fri, 10 Nov 2023 09:11:19 +0000 (10:11 +0100)
Resolves: #22632

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

index f7e6d04b1682b9ebea54f762a3f3248c325abb62..89af1cbe65d041b70417e08cbefd32ae741ff58f 100644 (file)
@@ -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)/
index ea4045f2e1929df2684926cea6a9d0781d5a2ecf..efcd3f2ccf783492126032b3004eff202d5c1485 100644 (file)
@@ -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"