Added passeneg manager. Part 12
This commit is contained in:
@@ -230,8 +230,9 @@ 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[0]["RUBY"]){
|
||||
exec(HESTIA_CMD . "v-ext-modules-run passenger_manager set_user_ruby " . quoteshellarg($v_domain) . " ". quoteshellarg($v_ruby_path), $output, $return_var);
|
||||
$v_ruby_log = !empty($_POST["v_passenger_logging"])?"on":"off";
|
||||
if ($v_ruby_path != $domain_ruby[0]["RUBY"] || $v_ruby_log != $domain_ruby[0]["LOG"]){
|
||||
exec(HESTIA_CMD . "v-ext-modules-run passenger_manager set_user_ruby " . quoteshellarg($v_domain) . " ". quoteshellarg($v_ruby_path) . " ". $v_ruby_log, $output, $return_var);
|
||||
check_return_code($return_var, $output);
|
||||
$restart_web = "yes";
|
||||
$restart_proxy = "yes";
|
||||
|
||||
Reference in New Issue
Block a user