From 666884b463ea7e1ada27eb3b197bc68b3b6978b6 Mon Sep 17 00:00:00 2001 From: chee Date: Fri, 4 Jan 2019 19:24:03 +0000 Subject: [PATCH] only update next snoot port for new snooters --- commands/create-snoot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/commands/create-snoot.js b/commands/create-snoot.js index d3c5ed9..b6dfef5 100755 --- a/commands/create-snoot.js +++ b/commands/create-snoot.js @@ -161,8 +161,10 @@ module.exports = async function createSnoot () { log("restarting nginx 🔂") await shell.run("nginx -s reload") - log("updating next snoot port 🌸") - await snoots.setNextPort(webPort + 1) + if (!snootAlreadyExists) { + log("updating next snoot port 🌸") + await snoots.setNextPort(webPort + 1) + } } let beingRunDirectly = process.argv[1].match(/create-snoot($|\.js$)/)