better naming of the dashboard functions
This commit is contained in:
+3
-3
@@ -65,7 +65,7 @@ async function ensureDhparams() {
|
||||
|
||||
async function unprovision() {
|
||||
// TODO: also cancel any existing configureWebadmin task
|
||||
await dashboard.setLocation('', '');
|
||||
await dashboard.clearLocation();
|
||||
await mail.clearDomains();
|
||||
await domains.clear();
|
||||
}
|
||||
@@ -77,7 +77,7 @@ async function setupTask(domain, auditSource) {
|
||||
try {
|
||||
await dashboard.setupDnsAndCert(constants.DASHBOARD_SUBDOMAIN, domain, auditSource, (progress) => setProgress('setup', progress.message));
|
||||
await ensureDhparams();
|
||||
await cloudron.setDashboardDomain(domain, auditSource);
|
||||
await cloudron.setLocation(domain);
|
||||
setProgress('setup', 'Done'),
|
||||
await eventlog.add(eventlog.ACTION_PROVISION, auditSource, {});
|
||||
} catch (error) {
|
||||
@@ -180,7 +180,7 @@ async function restoreTask(backupConfig, remotePath, ipv4Config, options, auditS
|
||||
|
||||
const { subdomain:dashboardSubdomain, domain:dashboardDomain } = await dashboard.getLocation(); // load this fresh from after the backup.restore
|
||||
if (!options.skipDnsSetup) await dashboard.setupDnsAndCert(dashboardSubdomain, dashboardDomain, auditSource, (progress) => setProgress('restore', progress.message));
|
||||
await cloudron.setDashboardDomain(dashboardDomain, auditSource);
|
||||
await dashboard.setLocation(dashboardDomain, auditSource);
|
||||
|
||||
await backups.setConfig(backupConfig);
|
||||
await eventlog.add(eventlog.ACTION_RESTORE, auditSource, { remotePath });
|
||||
|
||||
Reference in New Issue
Block a user