From b9823afa4ed93fa8175effcc37149d0399f51963 Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Mon, 3 Oct 2022 14:31:47 +0000 Subject: [PATCH] Use upstream default for DB path Following the principle of least surpise, using a path matching the upstream docs[1] is likely to cause least confusion. Given not many people are using this container, it seems OK to make this breaking change. [1] https://github.com/latchset/tang/blob/b088c37a65a03c31223e64a5fcd47fb458244979/doc/tang.8.adoc Fixes #2. --- root/usr/bin/tangd-entrypoint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/usr/bin/tangd-entrypoint b/root/usr/bin/tangd-entrypoint index e84d552..aa2131b 100755 --- a/root/usr/bin/tangd-entrypoint +++ b/root/usr/bin/tangd-entrypoint @@ -3,6 +3,6 @@ set -e TANG_LISTEN_PORT=${TANG_LISTEN_PORT:-80} -mkdir -p /var/db/tang /var/cache/tang +mkdir -p /var/db/tang -socat tcp-l:$TANG_LISTEN_PORT,reuseaddr,fork exec:"/usr/libexec/tangd /var/cache/tang" +socat tcp-l:$TANG_LISTEN_PORT,reuseaddr,fork exec:"/usr/libexec/tangd /var/db/tang"