fix for iptables restart on Debian/Ubuntu

This commit is contained in:
Serghey Rodin 2015-07-01 02:22:43 +03:00
commit 8be83a9e73
5 changed files with 23 additions and 11 deletions

View file

@ -23,14 +23,14 @@ if ($_SESSION['user'] == 'admin') {
break;
case 'restart': $cmd='v-restart-service';
break;
default: header("Location: /list/services/"); exit;
default: header("Location: /list/server/"); exit;
}
if ((!empty($_POST['system'])) && ($action == 'restart')) {
exec (VESTA_CMD."v-restart-system yes", $output, $return_var);
$_SESSION['error_srv'] = 'The system is going down for reboot NOW!';
unset($output);
header("Location: /list/services/");
header("Location: /list/server/");
exit;
}
@ -40,4 +40,4 @@ if ($_SESSION['user'] == 'admin') {
}
}
header("Location: /list/services/");
header("Location: /list/server/");