Skip to content

Commit

Permalink
fix: update ipfs start command.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorgripasov committed Jul 12, 2022
1 parent a3d9221 commit 5aaa0df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/cli-ipfs/src/modules/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import type { DXNSClient } from '@dxos/cli-dxns';

import { init, install, publish, register, query /*, download */ } from '../handlers';

const IPFS_EXEC = 'ipfs';
const IPFS_PROCESS_NAME = 'ipfs';
const IPFS_DEFAULT_LOG_FILE = '/var/log/ipfs.log';
const IPFS_EXEC = 'kube';
const IPFS_PROCESS_NAME = 'kube';
const IPFS_DEFAULT_LOG_FILE = '/var/log/kube.log';

const IPFS_SWARM_CONNECTOR_EXEC = 'node';
const IPFS_SWARM_CONNECTOR_PROCESS_NAME = 'ipfs-swarm-connect';
Expand Down
4 changes: 2 additions & 2 deletions packages/cli-ipfs/src/runnable/swarm-connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const OLD_RECORD_CREATED = '2001-01-01';

const LIMIT = 5;
const TIMEOUT = 10000;
const SERVICE_EXEC = 'ipfs';
const SERVICE_EXEC = 'kube';
const SVC_NAME = 'ipfs-swarm-connect';
const IPFS_SERVICE_DXN = 'dxos:type/service/ipfs';
const SERVICE_DXN = 'dxos:type/service';

const connect = (address: string) => {
const result = spawnSync(SERVICE_EXEC, ['swarm', 'connect', address]);
const result = spawnSync(SERVICE_EXEC, ['ipfs', 'swarm', 'connect', address]);
const out = String(result.stdout).trim();
const err = String(result.stderr).trim();
if (out) {
Expand Down

0 comments on commit 5aaa0df

Please sign in to comment.