diff --git a/src/cloudron.js b/src/cloudron.js index 296dc3af6..746c9906d 100644 --- a/src/cloudron.js +++ b/src/cloudron.js @@ -279,7 +279,7 @@ function prepareDashboardDomain(domain, auditSource, callback) { const conflict = result.filter(app => app.fqdn === fqdn); if (conflict.length) return callback(new BoxError(BoxError.BAD_STATE, 'Dashboard location conflicts with an existing app')); - tasks.add(tasks.TASK_SETUP_DASHBOARD_DNS_AND_CERT, [ domain, auditSource ], function (error, taskId) { + tasks.add(tasks.TASK_SETUP_DNS_AND_CERT, [ constants.ADMIN_LOCATION, domain, auditSource ], function (error, taskId) { if (error) return callback(error); tasks.startTask(taskId, {}, NOOP_CALLBACK);