xynginc 1.0.96 → 1.0.97

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.
@@ -13,9 +13,10 @@ export async function installRequirementsHandler(binaryPath, sudoCmd) {
13
13
  Logger.info("[XyNginC] Launching interactive installer...");
14
14
  Logger.info("[XyNginC] Please respond to any prompts in the terminal.");
15
15
  // Handle process environmental logic if running via non-interactive sudo -S
16
+ const envPrefix = "env XYNC_INSTALL_MODE=non-interactive DEBIAN_FRONTEND=noninteractive";
16
17
  const cmd = sudoCmd.includes("-S")
17
- ? `${sudoCmd} ${binaryPath} install`
18
- : `sudo ${binaryPath} install`;
18
+ ? `${sudoCmd} ${envPrefix} ${binaryPath} install`
19
+ : `sudo ${envPrefix} ${binaryPath} install`;
19
20
  // Spawn the process with inherited stdio for full interactivity
20
21
  const installProcess = spawn(cmd, {
21
22
  stdio: "inherit", // This allows the subprocess to use the parent's stdin/stdout/stderr
@@ -207,7 +208,7 @@ export async function checkRequirements(binaryPath, sudoCmd) {
207
208
  try {
208
209
  Logger.info("[XyNginC] Checking system requirements...");
209
210
  const cmd = `${sudoCmd} ${binaryPath} check`;
210
- Logger.info(`[XyNginC] Running: ${cmd}`);
211
+ // Logger.info(`[XyNginC] Running: ${__sys__.utils.str.of(cmd).between("ech")}`);
211
212
  await execStream(cmd);
212
213
  Logger.info("[XyNginC] System requirements checked successfully!");
213
214
  return true;
@@ -59,7 +59,10 @@ export async function startXNCPlugin(server, options) {
59
59
  Logger.info("[XyNginC] Requirements missing, installing automatically...");
60
60
  await installRequirementsHandler(binary, getSudo(sudoPassword));
61
61
  Logger.info("[XyNginC] Requirements installed, re-checking...");
62
- await checkRequirements(binary, getSudo(sudoPassword));
62
+ const recheckOk = await checkRequirements(binary, getSudo(sudoPassword));
63
+ if (!recheckOk) {
64
+ throw new Error("[XyNginC] System requirements installation failed or was incomplete. Please run 'sudo xynginc install' manually.");
65
+ }
63
66
  }
64
67
  else if (!requirementsOk) {
65
68
  throw new Error("[XyNginC] System requirements not satisfied. Install with 'installRequirements: true' or run: sudo xynginc install");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xynginc",
3
- "version": "1.0.96",
3
+ "version": "1.0.97",
4
4
  "description": "XyPriss Nginx Controller - Automatic Nginx & SSL management for XyPriss servers",
5
5
  "author": "Seth Eleazar - iDevo",
6
6
  "license": "NOSL",
@@ -1,11 +1,11 @@
1
1
  --- XYPRISS SIGNATURE (G3) ---
2
- Manifest: xynginc@1.0.96
2
+ Manifest: xynginc@1.0.97
3
3
  Min-Engine: 1.0.81
4
- Fingerprint: sha256:e7e5a57bf5e0a262062baa0c78a5c59c91044c00da42aabc6af91edffc80abbe
4
+ Fingerprint: sha256:bcb7ff347f32fadda4fb97221c8a3a345c829487b96f5b4f9917ce339d3db7c3
5
5
  Identity: ed25519:0e2e1accdbba45480979305256d50d368ae6cc2c0d7ee378c5f1999ae834cf58
6
6
  Privileges: XHS.HOOK.LIFECYCLE.REGISTER,XHS.HOOK.LIFECYCLE.SERVER_START,XHS.HOOK.LIFECYCLE.SERVER_STOP,XHS.HOOK.LIFECYCLE.SERVER_READY
7
- Expires: 2027-09-13T22:07:58Z
7
+ Expires: 2027-09-13T22:23:40Z
8
8
  Revision: sha256:none
9
9
  --- BEGIN CRYPTOGRAPHIC PROOF ---
10
- base64:VSQiC693lzyQXwMlaho4Hlequr97rUQCbWIx2KhaGMNBRiiEMjn1RBSFPGCskwaA3nUmmcBMd23LTAxDpERaDw==
10
+ base64:5GY1tW/vThkWfbexGer3o5a+/mZ9gaF+W6Iv85Odb7eH4uzU9/Vhx39WpjT4gytE0ftwsmeSxGjk/SscaDAsDw==
11
11
  --- END XYPRISS SIGNATURE ---