mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-30 12:41:46 +02:00
Improve start-ipfs-server.ps1
This commit is contained in:
@ -16,12 +16,12 @@ try {
|
|||||||
|
|
||||||
""
|
""
|
||||||
"Step 1/5: Searching for IPFS executable..."
|
"Step 1/5: Searching for IPFS executable..."
|
||||||
$Result = (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" }
|
||||||
""
|
""
|
||||||
"Step 2/5: Initializing IPFS..."
|
"Step 2/5: Initializing IPFS with server profile..."
|
||||||
& ipfs init --profile server
|
& ipfs init --profile server
|
||||||
""
|
|
||||||
"Step 3/5: Configuring IPFS..."
|
"Step 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
|
||||||
if ($lastExitCode -ne "0") { throw "'ipfs config Addresses.API' failed" }
|
if ($lastExitCode -ne "0") { throw "'ipfs config Addresses.API' failed" }
|
||||||
|
Reference in New Issue
Block a user