backuptarget: add default at provisioning time (again)

we clear the db in the tests. the tests run the setup again and again.
so, it's easier to add default values in provision time instead of
migration.
This commit is contained in:
Girish Ramakrishnan
2025-08-06 10:51:46 +02:00
parent 387c399078
commit f8d74bbb6d
5 changed files with 75 additions and 54 deletions

View File

@@ -86,6 +86,7 @@ async function setupTask(domain, auditSource) {
await reverseProxy.ensureCertificate(location, {}, auditSource);
await ensureDhparams();
await dashboard.setupLocation(constants.DASHBOARD_SUBDOMAIN, domain, auditSource);
await backupTargets.addDefault(auditSource);
setProgress('setup', 'Done'),
await eventlog.add(eventlog.ACTION_PROVISION, auditSource, {});
} catch (error) {