openclaw-openviking-setup-helper 0.2.12 → 0.2.13
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/install.js +12 -1
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -1106,6 +1106,18 @@ async function installOpenViking() {
|
|
|
1106
1106
|
async function configureOvConf() {
|
|
1107
1107
|
await mkdir(OPENVIKING_DIR, { recursive: true });
|
|
1108
1108
|
|
|
1109
|
+
const configPath = join(OPENVIKING_DIR, "ov.conf");
|
|
1110
|
+
if (installYes && existsSync(configPath)) {
|
|
1111
|
+
selectedServerPort = await readPortFromOvConf(configPath) || DEFAULT_SERVER_PORT;
|
|
1112
|
+
info(
|
|
1113
|
+
tr(
|
|
1114
|
+
`Preserved existing config: ${configPath}`,
|
|
1115
|
+
`已保留现有配置: ${configPath}`,
|
|
1116
|
+
),
|
|
1117
|
+
);
|
|
1118
|
+
return;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1109
1121
|
let workspace = join(OPENVIKING_DIR, "data");
|
|
1110
1122
|
let serverPort = String(DEFAULT_SERVER_PORT);
|
|
1111
1123
|
let agfsPort = String(DEFAULT_AGFS_PORT);
|
|
@@ -1173,7 +1185,6 @@ async function configureOvConf() {
|
|
|
1173
1185
|
},
|
|
1174
1186
|
};
|
|
1175
1187
|
|
|
1176
|
-
const configPath = join(OPENVIKING_DIR, "ov.conf");
|
|
1177
1188
|
await writeFile(configPath, JSON.stringify(config, null, 2) + "\n", "utf8");
|
|
1178
1189
|
info(tr(`Config generated: ${configPath}`, `已生成配置: ${configPath}`));
|
|
1179
1190
|
}
|