fold sysinfo into network

the backends are network backends
This commit is contained in:
Girish Ramakrishnan
2023-08-03 13:38:42 +05:30
parent a4d57e7b08
commit 47d57a3971
23 changed files with 143 additions and 161 deletions

View File

@@ -41,6 +41,7 @@ const apps = require('./apps.js'),
fs = require('fs'),
logs = require('./logs.js'),
mail = require('./mail.js'),
network = require('./network.js'),
notifications = require('./notifications.js'),
oidc = require('./oidc.js'),
path = require('path'),
@@ -51,7 +52,6 @@ const apps = require('./apps.js'),
services = require('./services.js'),
settings = require('./settings.js'),
shell = require('./shell.js'),
sysinfo = require('./sysinfo.js'),
tasks = require('./tasks.js'),
timers = require('timers/promises'),
users = require('./users.js');
@@ -309,8 +309,8 @@ async function setupDnsAndCert(subdomain, domain, auditSource, progressCallback)
const dashboardFqdn = dns.fqdn(subdomain, domain);
const ipv4 = await sysinfo.getServerIPv4();
const ipv6 = await sysinfo.getServerIPv6();
const ipv4 = await network.getIPv4();
const ipv6 = await network.getIPv6();
progressCallback({ percent: 20, message: `Updating DNS of ${dashboardFqdn}` });
await dns.upsertDnsRecords(subdomain, domain, 'A', [ ipv4 ]);