add debug

This commit is contained in:
Girish Ramakrishnan
2022-02-17 11:08:22 -08:00
parent 26a8738b21
commit eb3e87c340

View File

@@ -699,6 +699,8 @@ async function checkCerts(options, auditSource, progressCallback) {
function removeAppConfigs() {
const dashboardConfigFilename = `${settings.dashboardFqdn()}.conf`;
debug('removeAppConfigs: reomving nginx configs of apps');
// remove all configs which are not the default or current dashboard
for (let appConfigFile of fs.readdirSync(paths.NGINX_APPCONFIG_DIR)) {
if (appConfigFile !== constants.NGINX_DEFAULT_CONFIG_FILE_NAME && appConfigFile !== dashboardConfigFilename) {