Skip to content

Commit

Permalink
Kill processes before delete domain
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Dec 13, 2023
1 parent 6ce58d5 commit d56afe3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domcloud-bridge",
"version": "0.34.2",
"version": "0.34.3",
"description": "Deployment runner for DOM Cloud",
"main": "app.js",
"engines": {
Expand Down
4 changes: 3 additions & 1 deletion src/executor/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,11 @@ export default async function runConfig(config, domain, writer, sandbox = false)
});
break;
case 'delete':
const user = domaindata['Username'];
await writeLog("$> virtualmin delete-domain");
await spawnSudoUtil('SHELL_SUDO', [user, 'killall', '-u' , user]);
await virtExec("delete-domain", value, {
user: domaindata['Username'],
user,
});
await spawnSudoUtil('PHPFPM_CLEAN', domaindata['ID']);
// no need to do other stuff
Expand Down

0 comments on commit d56afe3

Please sign in to comment.