tang: set the right permissions to keys
Resolves: #22632 Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
parent
2b4332a3f3
commit
7d77c4d401
2 changed files with 2 additions and 1 deletions
|
@ -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)/
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue