configureAdmin is never used
This commit is contained in:
@@ -14,7 +14,6 @@ exports = module.exports = {
|
||||
renewCerts,
|
||||
|
||||
// the 'configure' ensure a certificate and generate nginx config
|
||||
configureAdmin,
|
||||
configureApp,
|
||||
unconfigureApp,
|
||||
|
||||
@@ -421,24 +420,6 @@ function writeDashboardNginxConfig(bundle, configFileName, vhost, callback) {
|
||||
reload(callback);
|
||||
}
|
||||
|
||||
function configureAdmin(domain, auditSource, callback) {
|
||||
assert.strictEqual(typeof domain, 'string');
|
||||
assert.strictEqual(typeof auditSource, 'object');
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
domains.get(domain, function (error, domainObject) {
|
||||
if (error) return callback(error);
|
||||
|
||||
const adminFqdn = domains.fqdn(constants.ADMIN_LOCATION, domainObject);
|
||||
|
||||
ensureCertificate(adminFqdn, domainObject.domain, auditSource, function (error, bundle) {
|
||||
if (error) return callback(error);
|
||||
|
||||
writeDashboardNginxConfig(bundle, `${adminFqdn}.conf`, adminFqdn, callback);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function writeDashboardConfig(domain, callback) {
|
||||
assert.strictEqual(typeof domain, 'string');
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
Reference in New Issue
Block a user