Added passeneg manager. Part 8
This commit is contained in:
@@ -224,7 +224,7 @@ if (!empty($_POST["save"])) {
|
||||
// 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"]){
|
||||
if ($v_ruby_path != $domain_ruby[0]["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";
|
||||
@@ -234,7 +234,7 @@ if (!empty($_POST["save"])) {
|
||||
}
|
||||
} else {
|
||||
if ($passenger_state == "enabled"){
|
||||
if ($domain_ruby["RUBY"] != ""){
|
||||
if ($domain_ruby[0]["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";
|
||||
@@ -246,7 +246,18 @@ if (!empty($_POST["save"])) {
|
||||
}
|
||||
|
||||
if ($changed_ruby == true){
|
||||
|
||||
exec(HESTIA_CMD . "v-update-web-domain " .
|
||||
$user .
|
||||
" " .
|
||||
quoteshellarg($v_domain) .
|
||||
" " .
|
||||
"passenger",
|
||||
$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"])) {
|
||||
|
||||
Reference in New Issue
Block a user