diff --git a/src/executor/runner.js b/src/executor/runner.js index 719279f..0e62132 100644 --- a/src/executor/runner.js +++ b/src/executor/runner.js @@ -245,7 +245,7 @@ export default async function runConfig(config, domain, writer, sandbox = false) await writeLog("$> virtualmin delete-domain"); await spawnSudoUtil('SHELL_SUDO', [user, 'killall', '-u', user]); await virtExec("delete-domain", value, { - user, + domain, }); await spawnSudoUtil('CLEAN_DOMAIN', [domaindata['ID'], domain]); // no need to do other stuff diff --git a/sudoutil.js b/sudoutil.js index 3874f26..1bc7a38 100755 --- a/sudoutil.js +++ b/sudoutil.js @@ -311,7 +311,7 @@ switch (cli.args.shift()) { K: 1 / 1024, B: 1 / (1024 * 1024), }[unit]; - if (size < 1536) { + if (size < 5 * 1024) { return true; } }