Skip to content

A peer-to-peer stack for code collaboration

Init IPFS repo when config file is missing

Thomas Scholtes56b6f25ab92b
diff --git a/bin/rad-daemon-ipfs b/bin/rad-daemon-ipfs
index 3bde4ae..2a7f109 100755
--- a/bin/rad-daemon-ipfs
+++ b/bin/rad-daemon-ipfs
@@ -5,7 +5,7 @@
set -euo pipefail
export IPFS_PATH=${IPFS_PATH:-"$HOME/.local/share/radicle/ipfs"}
-if [[ ! -d "$IPFS_PATH" ]]; then
+if [[ ! -f "$IPFS_PATH/config" ]]; then
mkdir -p "$IPFS_PATH"
ipfs init
cat >"$IPFS_PATH/swarm.key" <<DOC