From: Amélia Coutard-Sander Date: Mon, 2 Dec 2024 10:50:51 +0000 (+0100) Subject: Daemons should now be run in the repo's root's *parent* X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=9740ab34361722eee6d73d5a66bd7fd7afe0dd73;p=git-over-gnunet.git Daemons should now be run in the repo's root's *parent* --- 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