Skip to content

Commit

Permalink
Warn if already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 23, 2024
1 parent 845f0f5 commit d81b640
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
name: dbname,
type: 'mysql',
});
} else if (!value) {
await writeLog(`$> MySQL is already initialized. To create another database, use "mysql create dbname"`);
}
break;
case 'postgres':
Expand Down Expand Up @@ -132,6 +134,8 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
type: 'postgres',
}
);
} else if (!value) {
await writeLog(`$> PostgreSQL is already initialized. To create another database, use "postgresql create dbname"`);
}
break;
case 'dns':
Expand Down

0 comments on commit d81b640

Please sign in to comment.