Update start-ipfs-server.ps1

This commit is contained in:
Markus Fleschutz 2022-11-05 16:13:56 +01:00
parent 3ccce3044a
commit ade93f798c

View File

@ -17,8 +17,8 @@ try {
Write-Host "⏳ (1/5) Searching for IPFS executable... " -noNewline Write-Host "⏳ (1/5) Searching for IPFS executable... " -noNewline
& ipfs --version & ipfs --version
if ($lastExitCode -ne "0") { throw "Can't execute 'ipfs' - make sure IPFS is installed and available" } if ($lastExitCode -ne "0") { throw "Can't execute 'ipfs' - make sure IPFS is installed and available" }
"⏳ (2/5) Init IPFS with server profile..." "⏳ (2/5) Init IPFS with profile 'lowpower'..."
& ipfs init --profile server & ipfs init --profile lowpower
"⏳ (3/5) Configuring IPFS..." "⏳ (3/5) Configuring IPFS..."
& ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001 & ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001