directoryServer: move out start/stop from cron

This commit is contained in:
Girish Ramakrishnan
2022-08-15 21:08:22 +02:00
parent 20d722f076
commit d07b1c7280
2 changed files with 2 additions and 5 deletions

View File

@@ -67,6 +67,8 @@ async function applyConfig(config) {
const [error] = await safe(shell.promises.sudo('setLdapAllowlist', [ SET_LDAP_ALLOWLIST_CMD ], {}));
if (error) throw new BoxError(BoxError.IPTABLES_ERROR, `Error setting ldap allowlist: ${error.message}`);
if (config.enabled) await start(); else await stop();
}
// helper function to deal with pagination