Skip to content

Commit

Permalink
Fix db not triggered subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Jun 12, 2024
1 parent 1bc238d commit 9f736f3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
await writeLog("$> Disabling MySQL");
if (subenabled) {
await virtExec("disable-feature", value, {
subdomain,
domain: subdomain,
mysql: true,
});
} else {
Expand All @@ -69,7 +69,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
if (!subenabled) {
await writeLog("$> Enabling MySQL");
await virtExec("enable-feature", value, {
subdomain,
domain: subdomain,
mysql: true,
});
dbneedcreate = true;
Expand All @@ -82,7 +82,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
if (dbneedcreate) {
await writeLog(`$> Creating db instance ${dbname} on MySQL`);
await virtExec("create-database", {
subdomain,
domain: subdomain,
name: dbname,
type: 'mysql',
});
Expand All @@ -97,7 +97,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
await writeLog("$> Disabling PostgreSQL");
if (subenabled) {
await virtExec("disable-feature", value, {
subdomain,
domain: subdomain,
postgres: true,
});
} else {
Expand All @@ -108,7 +108,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
if (!subenabled) {
await writeLog("$> Enabling PostgreSQL");
await virtExec("enable-feature", value, {
subdomain,
domain: subdomain,
postgres: true,
});
dbneedcreate = true;
Expand All @@ -121,7 +121,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
if (dbneedcreate) {
await writeLog(`$> Creating db instance ${dbname} on PostgreSQL`);
await virtExec("create-database", {
subdomain,
domain: subdomain,
name: dbname,
type: 'postgres',
}
Expand Down

0 comments on commit 9f736f3

Please sign in to comment.