Skip to content

Commit

Permalink
Update db password
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Oct 26, 2024
1 parent c9dc0db commit 9b1bd55
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domcloud-bridge",
"version": "0.65.0",
"version": "0.66.0",
"description": "Deployment runner for DOM Cloud",
"main": "app.js",
"engines": {
Expand Down
18 changes: 18 additions & 0 deletions src/executor/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,24 @@ export default async function runConfig(config, domain, writer, sandbox = false)
await virtExec("modify-domain", value, {
domain,
});
if (value.pass) {
await writeLog("$> virtualmin modify-database-pass mysql");
if (domaindata['Features']?.includes('mysql')) {
await virtExec("modify-database-pass", {
domain,
pass: value.pass,
type: 'mysql',
});
}
if (domaindata['Features']?.includes('postgres')) {
await writeLog("$> virtualmin modify-database-pass postgres");
await virtExec("modify-database-pass", {
domain,
pass: value.pass,
type: 'postgres',
});
}
}
break;
case 'rename':
if (value && value["new-user"] && await firewallStatus()) {
Expand Down

0 comments on commit 9b1bd55

Please sign in to comment.