directoryServer: move out start/stop from cron
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user