mirror of
https://github.com/JRGTH/xigmanas-bastille-extension.git
synced 2025-12-12 01:39:50 +01:00
Use bastille built-in export/import functions
This commit is contained in:
@@ -114,7 +114,7 @@ if($_POST):
|
||||
$container['jailname'] = $_POST['jailname'];
|
||||
$confirm_name = $pconfig['confirmname'];
|
||||
$item = $container['jailname'];
|
||||
$cmd = ("/usr/local/sbin/bastille-init -B '{$item}'");
|
||||
$cmd = ("/usr/local/bin/bastille export '{$item}'");
|
||||
unset($output,$retval);mwexec2($cmd,$output,$retval);
|
||||
if($retval == 0):
|
||||
$savemsg .= gtext("Container backup process completed successfully.");
|
||||
|
||||
Reference in New Issue
Block a user