Bläddra i källkod

Merge pull request #6 from Adjokip/master

Adds the OS arguement to get_start_cmd
OwN-3m-All 9 år sedan
förälder
incheckning
b5c7b76bbf
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      modules/cron/cron.php
  2. 1 1
      modules/cron/user_cron.php

+ 1 - 1
modules/cron/cron.php

@@ -199,7 +199,7 @@ function exec_ogp_module()
 															  "mod_name" => $game_home['mod_name'],
 															  "def_precmd" => $game_home['def_precmd'],
 															  "def_postcmd" => $game_home['def_postcmd']);
-			$startup_cmd = get_start_cmd($remote,$server_xml,$game_home,$game_home['mod_id'],$game_home['ip'],$game_home['port']);
+			$startup_cmd = get_start_cmd($remote,$server_xml,$game_home,$game_home['mod_id'],$game_home['ip'],$game_home['port'], $remote->what_os());
 			$cpu = $game_home['cpu_affinity'];
 			$nice = $game_home['nice'];
 			

+ 1 - 1
modules/cron/user_cron.php

@@ -193,7 +193,7 @@ function exec_ogp_module()
 															  "mod_name" => $game_home['mod_name'],
 															  "def_precmd" => $game_home['def_precmd'],
 															  "def_postcmd" => $game_home['def_postcmd']);
-			$startup_cmd = get_start_cmd($remote,$server_xml,$game_home,$game_home['mod_id'],$game_home['ip'],$game_home['port']);
+			$startup_cmd = get_start_cmd($remote,$server_xml,$game_home,$game_home['mod_id'],$game_home['ip'],$game_home['port'], $remote->what_os());
 			$cpu = $game_home['cpu_affinity'];
 			$nice = $game_home['nice'];