shell: make shell.sudo promise based and waitable
This commit is contained in:
@@ -74,7 +74,7 @@ async function applyConfig(config) {
|
||||
safe.fs.unlinkSync(paths.LDAP_ALLOWLIST_FILE);
|
||||
}
|
||||
|
||||
const [error] = await safe(shell.promises.sudo([ SET_LDAP_ALLOWLIST_CMD ], {}));
|
||||
const [error] = await safe(shell.sudo([ SET_LDAP_ALLOWLIST_CMD ], {}));
|
||||
if (error) throw new BoxError(BoxError.IPTABLES_ERROR, `Error setting ldap allowlist: ${error.message}`);
|
||||
|
||||
if (!config.enabled) {
|
||||
|
||||
Reference in New Issue
Block a user