Comparing version 2.3.86 to 2.3.87
{ | ||
"name": "netget", | ||
"version": "2.3.86", | ||
"version": "2.3.87", | ||
"description": "Rette Adepto/ Recibido Directamente.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -1,6 +0,7 @@ | ||
//configureDefaultServerBlock.js | ||
// configureDefaultServerBlock.js | ||
import fs from 'fs'; | ||
import chalk from 'chalk'; | ||
import defaultServerBlock from './defaultServerBlock.js'; | ||
import inquirer from 'inquirer'; | ||
import defaultServerBlock from './defaultServerBlock.js'; | ||
import { execShellCommand } from '../../utils/execShellCommand.js'; // Make sure this is correctly imported | ||
@@ -50,3 +51,3 @@ export const configureDefaultServerBlock = async (userConfig) => { | ||
const escapedData = escapeDataForShell(data); | ||
const command = `echo '${escapedData}' | sudo tee ${path} > /dev/null`; | ||
const command = `echo '${escapedData}' | sudo tee ${path}`; | ||
try { | ||
@@ -53,0 +54,0 @@ await execShellCommand(command); |
@@ -13,3 +13,3 @@ // serverBlockConfigOptions.cli.js | ||
choices: [ | ||
'Set/Restore NGINX to Default NetGetX to Recommended Settings.', | ||
'Set/Restore NGINX to Default NetGetX Recommended Settings.', | ||
'Proceed with Current Configuration', | ||
@@ -22,3 +22,3 @@ 'Exit and Adjust Manually' | ||
switch (answers.action) { | ||
case 'Set/Restore NGINX to Default NetGetX to Recommended Settings.': | ||
case 'Set/Restore NGINX to Default NetGetX Recommended Settings.': | ||
await configureDefaultServerBlock(userConfig); | ||
@@ -25,0 +25,0 @@ return true; // Configuration was successfully restored |
{ | ||
"nginxConfigurationProceed": false, | ||
"nginxPath": "", | ||
"nginxSitesAvailable": "", | ||
"nginxSitesEnabled": "", | ||
"nginxPath": "/opt/homebrew/etc/nginx/nginx.conf", | ||
"nginxSitesAvailable": "/opt/homebrew/etc/nginx/sites-available", | ||
"nginxSitesEnabled": "/opt/homebrew/etc/nginx/sites-enabled", | ||
"useSudo": false, | ||
"nginxExecutable": "" | ||
"nginxExecutable": "/opt/homebrew/bin/nginx" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
873531
1170