Skip to content

Commit

Permalink
Correct dir
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Oct 9, 2024
1 parent 468371e commit 1f49736
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,13 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
await writeLog("$> Changing root path for safety");
await featureRunner("root public_html/public");
}
if (typeof services == 'string' && services.includes('/')) {
const subDir = services.substring(0, services.lastIndexOf('/'));
await sshExec(`cd ${htmlDir}/${subDir}`, false);
} else {
await sshExec(`cd ${htmlDir}`, false);
}

await writeLog("$> Removing docker compose services if exists");
await sshExec(`docker compose ${addFlags} --progress quiet down --remove-orphans || true`);
await writeLog("$> Configuring NGINX forwarding for docker");
Expand Down

0 comments on commit 1f49736

Please sign in to comment.