|
|
|
@ -205,7 +205,6 @@ if (($return_var == 0) && (!empty($check_passenger_enabled)) && ($check_passenge
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
unset($output);
|
|
|
|
|
|
|
|
|
|
// Check POST request
|
|
|
|
|
if (!empty($_POST["save"])) {
|
|
|
|
@ -220,6 +219,32 @@ if (!empty($_POST["save"])) {
|
|
|
|
|
$v_newip = "";
|
|
|
|
|
$v_newip_public = "";
|
|
|
|
|
|
|
|
|
|
$changed_ruby = false;
|
|
|
|
|
|
|
|
|
|
// Save ruby setting for domain
|
|
|
|
|
if (!empty($_POST["v_passenger_enabled"])){
|
|
|
|
|
$v_ruby_path = $_POST["v_ruby_path"];
|
|
|
|
|
if ($v_ruby_path != $domain_ruby["RUBY"]){
|
|
|
|
|
exec(HESTIA_CMD . "v-ext-modules-run passenger_manager set_user_ruby " . quoteshellarg($v_domain) . " ". quoteshellarg($v_ruby_path), $output, $return_var);
|
|
|
|
|
check_return_code($return_var, $output);
|
|
|
|
|
$restart_web = "yes";
|
|
|
|
|
$restart_proxy = "yes";
|
|
|
|
|
unset($output);
|
|
|
|
|
$changed_ruby = true;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if ($passenger_state == "enabled"){
|
|
|
|
|
if ($domain_ruby["RUBY"] != ""){
|
|
|
|
|
exec(HESTIA_CMD . "v-ext-modules-run passenger_manager disable_user " . quoteshellarg($v_domain), $output, $return_var);
|
|
|
|
|
check_return_code($return_var, $output);
|
|
|
|
|
$restart_web = "yes";
|
|
|
|
|
$restart_proxy = "yes";
|
|
|
|
|
unset($output);
|
|
|
|
|
$changed_ruby = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!empty($_POST["v_ip"])) {
|
|
|
|
|
$v_newip = $_POST["v_ip"];
|
|
|
|
|
$v_newip_public = empty($ips[$v_newip]["NAT"]) ? $v_newip : $ips[$v_newip]["NAT"];
|
|
|
|
|