cofluxd 0.1.1 → 0.1.2
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/cofluxd.mjs +1 -1
- package/package.json +1 -1
package/cofluxd.mjs
CHANGED
|
@@ -205,7 +205,7 @@ function cmdReload() {
|
|
|
205
205
|
function cmdDown() { stopService(); console.log("✓ 已停止"); }
|
|
206
206
|
|
|
207
207
|
async function cmdUpdate(v) {
|
|
208
|
-
if (!fs.existsSync(
|
|
208
|
+
if (!fs.existsSync(SETTINGS)) die("尚未安装,先 cofluxd up / onboard");
|
|
209
209
|
await ensureBinaries({ version: v.version, binDir: v["bin-dir"] });
|
|
210
210
|
restartService();
|
|
211
211
|
console.log(`✓ 已更新到 ${v["bin-dir"] ? "本地产物" : v.version} 并重启(supervisor)`);
|