From 9740ab34361722eee6d73d5a66bd7fd7afe0dd73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Am=C3=A9lia=20Coutard-Sander?= Date: Mon, 2 Dec 2024 11:50:51 +0100 Subject: [PATCH] Daemons should now be run in the repo's root's *parent* --- README.txt | 2 +- daemon.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.txt b/README.txt index ad24e84..c9eadbe 100644 --- a/README.txt +++ b/README.txt @@ -9,7 +9,7 @@ Client: `GIT_EXEC_PATH=$GIT_EXEC_PATH:` before every git command that uses remotes). The URL to give to git is gnunet:///. Server: - - To run the server on a repo, simply copy the two .sh files to its root, and run + - To run the server on a repo, simply copy the two .sh files to its root's parent, and run `./run-daemons.sh `. - You should also add a gns TXT record containing the peerid serving your repos to your zone. - This will open the repo for pulling on the url `gnunet:///`. diff --git a/daemon.sh b/daemon.sh index 0d9d747..1b86ab0 100755 --- a/daemon.sh +++ b/daemon.sh @@ -16,7 +16,7 @@ name="$2" echo >&2 "Running $service on port \`git.$name.git-$service'." mktempfifo -while < "$fifo_name" gnunet-cadet -o "git.$name.git-$service" | git "$service" . | (cat; sleep 5) | cat > "$fifo_name"; test 130 != "$?"; do +while < "$fifo_name" gnunet-cadet -o "git.$name.git-$service" | git "$service" "$name" | (cat; sleep 5) | cat > "$fifo_name"; test 130 != "$?"; do rm "$fifo_name" mktempfifo done -- 2.46.0