Use -y on destroy jail

This commit is contained in:
tschettervictor
2025-06-04 08:28:27 -06:00
committed by GitHub
parent b9d8e6930b
commit 34e4902919

View File

@@ -390,9 +390,9 @@ if($_POST):
break; break;
else: else:
if (isset($_POST['nowstop'])): if (isset($_POST['nowstop'])):
$cmd = ("/usr/local/bin/bastille destroy -f {$item}"); $cmd = ("/usr/local/bin/bastille destroy -fy {$item}");
else: else:
$cmd = ("/usr/local/bin/bastille destroy {$item}"); $cmd = ("/usr/local/bin/bastille destroy -y {$item}");
endif; endif;
unset($output,$retval);mwexec2($cmd,$output,$retval); unset($output,$retval);mwexec2($cmd,$output,$retval);
if($retval == 0): if($retval == 0):