INNER CODE UNIT · JavaScript

setupDomain

alohe/quicky · index.js:188

async function setupDomain(domain, port) {
	try {
		execSync("nginx -v", { stdio: "ignore" });
	} catch {
		execSync("sudo apt install nginx -y", { stdio: "inherit" });
	}

	try {
		execSync("certbot --version && certbot plugins | grep nginx", {
			stdio: "ignore",
		});
	} catch {
		execSync("sudo apt install certbot python3-certbot-nginx -y", {
			stdio: "inherit",
		});
	}

	const config = readConfig();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…