configureAdmin is never used

This commit is contained in:
Girish Ramakrishnan
2021-05-05 12:16:25 -07:00
parent 7f6a0555b2
commit cc9b43450c

View File

@@ -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');