Skip to content

Commit

Permalink
Use plain
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Sep 18, 2024
1 parent 814b61b commit 910bcad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,16 +472,16 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
if (config.services) {
await writeLog("$> Removing docker compose services if exists");
if (typeof config.services == 'string') {
await sshExec(`docker compose -f ${config.services} down --remove-orphans --rmi all || true`);
await sshExec(`docker compose -f ${config.services} --progress-plain down --remove-orphans --rmi all || true`);
} else {
await sshExec(`docker compose down --remove-orphans --rmi all || true`);
await sshExec(`docker compose --progress-plain down --remove-orphans --rmi all || true`);
}
await writeLog("$> Writing docker compose services");
let d = await dockerExec.executeServices(config.services, subdomaindata['Home directory'] + '/public_html', subdomain);
await writeLog(d.split('\n').map(x => ` ${x}`).join('\n'));
await writeLog("$> Applying compose services");
if (typeof config.services == 'string') {
await sshExec(`docker compose -f ${config.services} up --build --detach`);
await sshExec(`docker compose -f ${config.services} --progress-plain up --build --detach`);
} else {
await sshExec(`docker compose up --build --detach`);
}
Expand Down

0 comments on commit 910bcad

Please sign in to comment.