Skip to content

Commit 701dcb6

Browse files
committed
Fix postgres
1 parent a92507e commit 701dcb6

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "domcloud-bridge",
3-
"version": "1.4.251116",
3+
"version": "1.4.260106",
44
"description": "Deployment runner for DOM Cloud",
55
"main": "app.js",
66
"engines": {

src/executor/runnersub.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
355355
break;
356356
case 'php':
357357
if (value == 'lts' || value == 'latest') {
358-
value = getLtsPhp();
358+
value = getLtsPhp('');
359359
} else if (value == 'off') {
360360
value = 'off';
361361
} else if (!value.includes('.')) {

src/executor/virtualmin.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ class VirtualminExecutor {
2828
if (r.code === 255)
2929
throw r;
3030
let result = extractYaml(r.stdout);
31+
// workaround postgres bug
32+
for (const domainName of Object.keys(result)) {
33+
const pgVal = result[domainName]['Password for postgres'];
34+
if (/^'.+'$/.test(pgVal)) {
35+
result[domainName]['Password for postgres'] = pgVal.substring(1, pgVal.length - 1);
36+
}
37+
}
3138
if (typeof domain === 'string') {
3239
return result[domain];
3340
}

0 commit comments

Comments
 (0)