Skip to content

Commit

Permalink
fix clean
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Oct 26, 2024
1 parent d9a17ac commit c9dc0db
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sudoutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,12 @@ switch (cli.args.shift()) {
}
}
}
if (domain && existsSync(env.NGINX_PATH.replace('$', domain))) {
cleanfile(p);
nginxcleaned = '1';
if (domain) {
var p = env.NGINX_PATH.replace('$', domain);
if (existsSync(p)) {
cleanfile(p);
nginxcleaned = '1';
}
}
if (fpmcleaned) {
exec(`systemctl restart ${fpmcleaned}-php-fpm`)
Expand Down

0 comments on commit c9dc0db

Please sign in to comment.