]> git.ameliathe1st.gay Git - git-over-gnunet.git/commitdiff
Command to run the needed daemon, and put the necessary information in a specified...
authorAmélia Coutard-Sander <git@ameliathe1st.gay>
Mon, 25 Nov 2024 22:11:47 +0000 (23:11 +0100)
committerAmélia Coutard-Sander <git@ameliathe1st.gay>
Mon, 25 Nov 2024 22:11:47 +0000 (23:11 +0100)
run-daemons.sh [new file with mode: 0755]

diff --git a/run-daemons.sh b/run-daemons.sh
new file mode 100755 (executable)
index 0000000..6187bc4
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+if test -z $1 || test -z $2 || ! test -z $3; then
+       echo >&2 "Usage: $0 <ego> <repo-name>"
+       exit 1
+fi
+
+ego="$1"
+name="$2"
+
+echo >&2 "Running pullable repo $name in ego $ego."
+gnunet-namestore -a -t TXT -e 1d -n "$name" -V "$(gnunet-core -i | sed 's/.*: //'):$name" -z "$ego"
+
+./daemon.sh upload-pack "$name"
+
+gnunet-namestore -d -n "$name" -z "$ego"
+echo >&2 "Terminating pullable repo $name in ego $ego."