@constellation-network/node-pilot 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @constellation-network/node-pilot
21
21
  $ cpilot COMMAND
22
22
  running command...
23
23
  $ cpilot (--version|-v)
24
- @constellation-network/node-pilot/0.0.5 darwin-arm64 node-v22.15.0
24
+ @constellation-network/node-pilot/0.0.7 darwin-arm64 node-v22.15.0
25
25
  $ cpilot --help [COMMAND]
26
26
  USAGE
27
27
  $ cpilot COMMAND
@@ -62,7 +62,7 @@ EXAMPLES
62
62
  $ cpilot config
63
63
  ```
64
64
 
65
- _See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.5/src/commands/config.ts)_
65
+ _See code: [src/commands/config.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.7/src/commands/config.ts)_
66
66
 
67
67
  ## `cpilot config get [NAME]`
68
68
 
@@ -86,7 +86,7 @@ EXAMPLES
86
86
  $ cpilot config get gl0:CL_PUBLIC_HTTP_PORT
87
87
  ```
88
88
 
89
- _See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.5/src/commands/config/get.ts)_
89
+ _See code: [src/commands/config/get.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.7/src/commands/config/get.ts)_
90
90
 
91
91
  ## `cpilot config set NAME VALUE`
92
92
 
@@ -109,7 +109,7 @@ EXAMPLES
109
109
  $ cpilot config set gl0:CL_PUBLIC_HTTP_PORT 9000
110
110
  ```
111
111
 
112
- _See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.5/src/commands/config/set.ts)_
112
+ _See code: [src/commands/config/set.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.7/src/commands/config/set.ts)_
113
113
 
114
114
  ## `cpilot help [COMMAND]`
115
115
 
@@ -146,7 +146,7 @@ EXAMPLES
146
146
  $ cpilot info
147
147
  ```
148
148
 
149
- _See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.5/src/commands/info.ts)_
149
+ _See code: [src/commands/info.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.7/src/commands/info.ts)_
150
150
 
151
151
  ## `cpilot logs [LAYER]`
152
152
 
@@ -169,7 +169,7 @@ EXAMPLES
169
169
  $ cpilot logs
170
170
  ```
171
171
 
172
- _See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.5/src/commands/logs.ts)_
172
+ _See code: [src/commands/logs.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.7/src/commands/logs.ts)_
173
173
 
174
174
  ## `cpilot restart`
175
175
 
@@ -186,7 +186,7 @@ EXAMPLES
186
186
  $ cpilot restart
187
187
  ```
188
188
 
189
- _See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.5/src/commands/restart.ts)_
189
+ _See code: [src/commands/restart.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.7/src/commands/restart.ts)_
190
190
 
191
191
  ## `cpilot shutdown`
192
192
 
@@ -203,7 +203,7 @@ EXAMPLES
203
203
  $ cpilot shutdown
204
204
  ```
205
205
 
206
- _See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.5/src/commands/shutdown.ts)_
206
+ _See code: [src/commands/shutdown.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.7/src/commands/shutdown.ts)_
207
207
 
208
208
  ## `cpilot status`
209
209
 
@@ -217,5 +217,5 @@ DESCRIPTION
217
217
  Display node status and configuration settings
218
218
  ```
219
219
 
220
- _See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.5/src/commands/status.ts)_
220
+ _See code: [src/commands/status.ts](https://github.com/Constellation-Labs/node-pilot/blob/v0.0.7/src/commands/status.ts)_
221
221
  <!-- commandsstop -->
@@ -59,10 +59,10 @@ export const checkProject = {
59
59
  else if (rInfo.version !== nInfo.version) {
60
60
  configStore.setNetworkInfo({ type: rInfo.network, version: rInfo.version });
61
61
  }
62
- const clusterVersionInfo = await clusterService.getReleaseVersion();
62
+ const clusterVersion = await clusterService.getReleaseVersion();
63
63
  if (!requiresInstall) {
64
64
  const nInfo = configStore.getNetworkInfo();
65
- if (nInfo.version !== clusterVersionInfo) {
65
+ if (nInfo.version !== clusterVersion) {
66
66
  const answer = await input({
67
67
  default: 'y',
68
68
  message: `A new required network version has been detected. Do you want to upgrade now? (y/n): `
@@ -79,9 +79,10 @@ export const checkProject = {
79
79
  },
80
80
  async runInstall() {
81
81
  const nInfo = configStore.getNetworkInfo();
82
+ const clusterVersion = await clusterService.getReleaseVersion();
82
83
  let rInfo = await configHelper.getReleaseInfo();
83
- if (rInfo && rInfo.network === nInfo.type) {
84
- clm.postStep(`Network files are already installed for ${nInfo.type}`);
84
+ if (rInfo && rInfo.network === nInfo.type && rInfo.version === clusterVersion) {
85
+ clm.postStep(`Network files are already installed for ${nInfo.type} version ${clusterVersion}`);
85
86
  return false;
86
87
  }
87
88
  const nodeInfo = await nodeService.getNodeInfo('first');
@@ -2,10 +2,10 @@ export function getLayerEnvFileContent(layer, network, commonInfo, layerInfo) {
2
2
  return `
3
3
  # Node
4
4
  CL_EXTERNAL_IP=${commonInfo.CL_EXTERNAL_IP}
5
- CL_DOCKER_JAVA_OPTS="${layerInfo.CL_DOCKER_JAVA_OPTS}"
6
- CL_KEYSTORE="/app/key.p12"
7
- CL_KEYALIAS="${commonInfo.CL_KEYALIAS}"
8
- CL_PASSWORD="${commonInfo.CL_PASSWORD}"
5
+ CL_DOCKER_JAVA_OPTS='${layerInfo.CL_DOCKER_JAVA_OPTS}'
6
+ CL_KEYSTORE='/app/key.p12'
7
+ CL_KEYALIAS='${commonInfo.CL_KEYALIAS}'
8
+ CL_PASSWORD='${commonInfo.CL_PASSWORD}'
9
9
  CL_TESSELATION_LAYER=${layer}
10
10
 
11
11
  # NETWORK
@@ -26,8 +26,8 @@ CL_CLI_HTTP_PORT=${layerInfo.CL_CLI_HTTP_PORT}
26
26
  }
27
27
  export function getKeyFileContent(commonInfo) {
28
28
  return `
29
- export CL_KEYSTORE="${commonInfo.CL_KEYSTORE}"
30
- export CL_KEYALIAS="${commonInfo.CL_KEYALIAS}"
31
- export CL_PASSWORD="${commonInfo.CL_PASSWORD}"
29
+ export CL_KEYSTORE='${commonInfo.CL_KEYSTORE}'
30
+ export CL_KEYALIAS='${commonInfo.CL_KEYALIAS}'
31
+ export CL_PASSWORD='${commonInfo.CL_PASSWORD}'
32
32
  `;
33
33
  }
@@ -237,5 +237,5 @@
237
237
  ]
238
238
  }
239
239
  },
240
- "version": "0.0.5"
240
+ "version": "0.0.7"
241
241
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@constellation-network/node-pilot",
3
3
  "description": "An easy deployment and monitoring tool for Constellation nodes.",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "author": "Frank Fox",
6
6
  "bin": {
7
7
  "cpilot": "bin/run.js"
@@ -232,7 +232,6 @@ check_docker() {
232
232
  curl -fsSL https://get.docker.com -o get-docker.sh
233
233
  sudo sh ./get-docker.sh
234
234
  sudo usermod -aG docker $USER
235
- newgrp docker
236
235
  echo "Docker installed. You may need to log out and back in for group changes to take effect."
237
236
  else
238
237
  echo "⚠️ Unsupported Linux distribution. Please install Docker manually."