[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taldir] branch master updated: prototype disseminator
From: |
Admin |
Subject: |
[taldir] branch master updated: prototype disseminator |
Date: |
Fri, 13 Jun 2025 22:36:02 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository taldir.
The following commit(s) were added to refs/heads/master by this push:
new ca0966b prototype disseminator
ca0966b is described below
commit ca0966b5857f2dd2c2ca8634a7a2c7ec7b815413
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Fri Jun 13 22:35:58 2025 +0200
prototype disseminator
---
scripts/disseminators/taldir-disseminate-gns | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/scripts/disseminators/taldir-disseminate-gns
b/scripts/disseminators/taldir-disseminate-gns
new file mode 100755
index 0000000..8c11aa0
--- /dev/null
+++ b/scripts/disseminators/taldir-disseminate-gns
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+set -eu
+
+# This is more portable than `which' but comes with
+# the caveat of not(?) properly working on busybox's ash:
+existence()
+{
+ type "$1" >/dev/null 2>&1
+}
+
+# FIXME this is the salted address. Do we external clients have the salt?
+HS_ADDR=$1
+URI=$2
+
+#TODO we need to get the identity/expiration from config
+# this will require a taler-directory-config cli tool
+EGO="taldir"
+RD_EXP="1d"
+
+
+if ! existence gnunet-namestore; then
+ echo "gnunet-namestore not found"
+ exit 1
+fi
+
+gnunet-namestore --add --name $HS_ADDR --type TXT --expiration $RD_EXP --value
"$URI"
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taldir] branch master updated: prototype disseminator,
Admin <=