mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 17:38:19 +02:00
Improve start-ipfs-server.ps1
This commit is contained in:
parent
193f373668
commit
b6a5cccbe2
@ -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" }
|
||||||
|
Loading…
Reference in New Issue
Block a user