Revert "Fix server offline issue after OGP reference removal in PR #5"

This commit is contained in:
Frank Harris 2025-09-05 19:16:04 -04:00 committed by GitHub
parent 15d147faab
commit 1ac7d9b3c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 65 additions and 64 deletions

View file

@ -195,7 +195,7 @@ then
echo "Writing Config file - $cfgfile"
echo "%Cfg::Config = (
logfile => '${agent_home}/agent.log',
logfile => '${agent_home}/ogp_agent.log',
listen_port => '${port}',
listen_ip => '${ip}',
version => '${AGENT_VERSION}',
@ -521,7 +521,7 @@ then
ftpd_user=$(grep -oP '^User\s+\K.+' ${proFTPdConfFile})
ftpd_group=$(grep -oP '^Group\s+\K.+' ${proFTPdConfFile})
if [ -z "$agent_user" ]; then
agent_user=$(grep -oP 'agent_user=\K.+' /etc/init.d/agent)
agent_user=$(grep -oP 'agent_user=\K.+' /etc/init.d/ogp_agent)
fi
if [ ! -z "$ftpd_user" ] && [ ! -z "$ftpd_group" ] && [ ! -z "$agent_user" ]
then

View file

@ -7,16 +7,16 @@ agent_user=OGP_USER
# Start function.
start() {
echo "Starting Game Server Agent..."
echo "Starting OGP Agent..."
cd $agent_dir
su -c "screen -d -m -t agent -c screenrc -S agent ./agent_run -pidfile agent_run.pid" $agent_user &> $agent_dir/agent.svc &
su -c "screen -d -m -t ogp_agent -c ogp_screenrc -S ogp_agent ./ogp_agent_run -pidfile ogp_agent_run.pid" $agent_user &> $agent_dir/ogp_agent.svc &
echo
}
# Stop function.
stop() {
echo "Stopping Game Server Agent..."
kill `cat $agent_dir/agent_run.pid`
echo "Stopping OGP Agent..."
kill `cat $agent_dir/ogp_agent_run.pid`
}
restart() {

View file

@ -1,15 +1,15 @@
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: agent
# Provides: ogp_agent
# Required-Start: $all
# Required-Stop: $all
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the Game Server Agent
# Description: Start and stop the Game Server Agent
# Short-Description: Start and stop the OGP Agent
# Description: Start and stop the OGP Agent
### END INIT INFO
#
@ -26,9 +26,9 @@ then
fi
start() {
if [ -e "$agent_dir/agent_run.pid" ]
if [ -e "$agent_dir/ogp_agent_run.pid" ]
then
pid=$(cat $agent_dir/agent_run.pid)
pid=$(cat $agent_dir/ogp_agent_run.pid)
out=$(kill -0 $pid > /dev/null 2>&1)
if [ $? == 0 ]
then
@ -90,14 +90,14 @@ start() {
fi
cd $agent_dir
out=$(su -c "screen -d -m -t agent -c screenrc -S agent ./agent_run -pidfile agent_run.pid" $agent_user >/dev/null 2>&1)
out=$(su -c "screen -d -m -t ogp_agent -c ogp_screenrc -S ogp_agent ./ogp_agent_run -pidfile ogp_agent_run.pid" $agent_user >/dev/null 2>&1)
return 0
}
stop() {
if [ -e "$agent_dir/agent_run.pid" ]
if [ -e "$agent_dir/ogp_agent_run.pid" ]
then
pid=$(cat $agent_dir/agent_run.pid)
pid=$(cat $agent_dir/ogp_agent_run.pid)
kill -0 $pid > /dev/null 2>&1
if [ $? == 0 ]
then
@ -126,7 +126,7 @@ case "${1:-''}" in
RETVAL=$?
;;
*)
echo "Usage: service agent start|stop|restart"
echo "Usage: service ogp_agent start|stop|restart"
exit 1
;;
esac

View file

@ -12,14 +12,14 @@ depend() {
}
start() {
ebegin "Starting Game Server Agent"
start-stop-daemon --verbose --chdir $agent_dir --start --background --user $agent_user -e PWD="$agent_dir" --exec screen -d -m -t agent -c screenrc -S agent ./agent_run -pidfile agent_run.pid
eend $? "Failed to start Game Server Agent"
ebegin "Starting OGP Agent"
start-stop-daemon --verbose --chdir $agent_dir --start --background --user $agent_user -e PWD="$agent_dir" --exec screen -d -m -t ogp_agent -c ogp_screenrc -S ogp_agent ./ogp_agent_run -pidfile ogp_agent_run.pid
eend $? "Failed to start OGP Agent"
}
stop() {
ebegin "Stopping Game Server Agent"
start-stop-daemon --stop --quiet --pidfile $agent_dir/agent_run.pid
eend $? "Failed to stop Game Server Agent"
ebegin "Stopping OGP Agent"
start-stop-daemon --stop --quiet --pidfile $agent_dir/ogp_agent_run.pid
eend $? "Failed to stop OGP Agent"
}

View file

@ -1,16 +1,16 @@
#!/bin/sh
#
# Startup/shutdown script for the Game Server Agent.
# Startup/shutdown script for the OGP Agent.
#
# Linux chkconfig stuff:
#
# chkconfig: 2345 88 10
# description: Startup/shutdown script for the Game Server Agent
# description: Startup/shutdown script for the OGP Agent
agent_dir=OGP_AGENT_DIR
agent_user=OGP_USER
service=agent
service=ogp_agent
# Source function library.
if [ -f /etc/rc.d/init.d/functions ] ; then
@ -23,7 +23,7 @@ if [ "$( whoami )" != "root" ]
then
if [ -f "/usr/bin/sudo" ] && [ "$( groups $agent_user | grep "\bsudo\b" )" != "" ]
then
sudo /etc/init.d/agent ${1:-''}
sudo /etc/init.d/ogp_agent ${1:-''}
exit
else
echo "Permission denied."
@ -32,9 +32,9 @@ then
fi
start() {
echo -n "Starting Game Server Agent: "
if [ -e "$agent_dir/agent_run.pid" ]; then
PID=`cat $agent_dir/agent_run.pid`
echo -n "Starting OGP Agent: "
if [ -e "$agent_dir/ogp_agent_run.pid" ]; then
PID=`cat $agent_dir/ogp_agent_run.pid`
RET=$(kill -s 0 $PID &> /dev/null; echo $?)
if [ $RET -eq 0 ]; then
echo -n "already running."
@ -100,22 +100,22 @@ start() {
fi
cd $agent_dir
su -c "screen -d -m -t agent -c screenrc -S agent ./agent_run -pidfile agent_run.pid" $agent_user &> $agent_dir/agent.svc &
su -c "screen -d -m -t ogp_agent -c ogp_screenrc -S ogp_agent ./ogp_agent_run -pidfile ogp_agent_run.pid" $agent_user &> $agent_dir/ogp_agent.svc &
echo -n "started successfully."
bold=`tput bold`
normal=`tput sgr0`
echo
echo "Use ${bold}sudo su -c 'screen -S agent -r' $agent_user${normal} to attach the agent screen,"
echo "Use ${bold}sudo su -c 'screen -S ogp_agent -r' $agent_user${normal} to attach the agent screen,"
echo "and ${bold}ctrl+A+D${normal} to detach it."
return 0
}
stop() {
# Stop daemon
echo -n "Stopping Game Server Agent: "
if [ -f $agent_dir/agent_run.pid ]
echo -n "Stopping OGP Agent: "
if [ -f $agent_dir/ogp_agent_run.pid ]
then
PID=`cat $agent_dir/agent_run.pid`
PID=`cat $agent_dir/ogp_agent_run.pid`
RET=$(kill $PID &> /dev/null; echo $?)
if [ $RET -ne 0 ]; then
echo -n "not running."
@ -123,7 +123,7 @@ stop() {
echo -n "stopped successfully."
fi
else
echo -n "PID file not found ($agent_dir/agent_run.pid)"
echo -n "PID file not found ($agent_dir/ogp_agent_run.pid)"
fi
echo
return 0
@ -145,7 +145,7 @@ case "$1" in
RETVAL=$?
;;
*)
echo "Usage: service agent start|stop|restart"
echo "Usage: service ogp_agent start|stop|restart"
RETVAL=1
echo
;;

View file

@ -1,15 +1,16 @@
# Game Server Agent systemd Service Script
# By Game Server Panel
# ogp_agent systemd Service Script
# By Open Game Panel
# OGP <own3mall@gmail.com>
[Unit]
Description=Game Server Agent Daemon
Description=Open Game Panel (OGP) Daemon www.opengamepanel.org
After=network.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c "{OGP_AGENT_PATH}/agent_init start"
ExecStop=/bin/sh -c "{OGP_AGENT_PATH}/agent_init stop"
ExecStart=/bin/sh -c "{OGP_AGENT_PATH}/ogp_agent_init start"
ExecStop=/bin/sh -c "{OGP_AGENT_PATH}/ogp_agent_init stop"
RemainAfterExit=yes
PIDFile="{OGP_AGENT_PATH}/agent_run.pid"
PIDFile="{OGP_AGENT_PATH}/ogp_agent_run.pid"
[Install]
WantedBy=multi-user.target

View file

@ -175,7 +175,7 @@ then
echo "Writing Config file - $cfgfile"
echo "%Cfg::Config = (
logfile => '${agent_home}/agent.log',
logfile => '${agent_home}/ogp_agent.log',
listen_port => '${port}',
listen_ip => '${ip}',
version => '${AGENT_VERSION}',
@ -489,7 +489,7 @@ then
fi
ftpd_user=$(grep -oP '^User\s+\K.+' ${proFTPdConfFile})
ftpd_group=$(grep -oP '^Group\s+\K.+' ${proFTPdConfFile})
agent_user=$(grep -oP 'agent_user=\K.+' /etc/init.d/agent)
agent_user=$(grep -oP 'agent_user=\K.+' /etc/init.d/ogp_agent)
if [ ! -z "$ftpd_user" ] && [ ! -z "$ftpd_group" ] && [ ! -z "$agent_user" ]
then
if [ "$(groups $agent_user|grep $ftpd_group)" == "" ]

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "تحتاج إضافة مودز بعد إضافة سيرفر إلى مستخدم . يمكنك عمل ذلك بتعديل السيرفر.");
define('OGP_LANG_game_servers', "سيرفرات الألعاب");
define('OGP_LANG_game_path', "مسار اللعبة");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "اسم السيرفر يساعد المستخدمين على معرفة سيرفراتهم");
define('OGP_LANG_control_password', "التحكم في كلمة المرور");
define('OGP_LANG_control_password_info', "كلمةالمرور هذه تستخدم للتحكم فى السيرفر . مثل كلمة السر RCON . إذا كانت خانة كلمة المرور فارغة هذا يعنى أنها مستخدمة.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "You need to add mods after adding server to user. This can be done by editing the server.");
define('OGP_LANG_game_servers', "Game Servers");
define('OGP_LANG_game_path', "Game Path");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Server name helps users to identify their servers.");
define('OGP_LANG_control_password', "Control password");
define('OGP_LANG_control_password_info', "This password is used for server control, such as RCON password. If the password is empty then other means are used.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "Du er nødtil at tilføje mods efter en server er tildelt en bruger. Dette ka gøres, ved at redigere serveren.");
define('OGP_LANG_game_servers', "Spil Servere");
define('OGP_LANG_game_path', "Spil Sti");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Server navn hjælper brugere til at genkende deres servere.");
define('OGP_LANG_control_password', "Kontrol kodeord");
define('OGP_LANG_control_password_info', "Denne adgangskode bliver brugt til server kontrol, så som RCON kodeord. Hvis feltet hvor adgangskoden er tom, er der andre muligheder.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "You need to add mods after adding server to user. This can be done by editing the server.");
define('OGP_LANG_game_servers', "Game Servers");
define('OGP_LANG_game_path', "Game Path");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Server name helps users to identify their servers.");
define('OGP_LANG_control_password', "Control password");
define('OGP_LANG_control_password_info', "This password is used for server control, such as RCON password. If the password is empty then other means are used.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "Sie müssen Mods hinzufügen, nachdem Sie dem Benutzer einen Server hinzugefügt haben. Dies kann durch Bearbeiten des Servers erfolgen.");
define('OGP_LANG_game_servers', "Spielserver ");
define('OGP_LANG_game_path', "Game Pfad");
define('OGP_LANG_game_path_info', "Der absolute Server Pfad. Beispiel: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "Der absolute Server Pfad. Beispiel: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Servername hilft Benutzern, ihre Server zu identifizieren. ");
define('OGP_LANG_control_password', "Control Passwort");
define('OGP_LANG_control_password_info', "Dieses Passwort wird für die Serversteuerung verwendet, z. B. für das RCON-Passwort. Wenn das Passwort leer ist, werden andere Mittel verwendet.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "You need to add mods after adding server to user. This can be done by editing the server.");
define('OGP_LANG_game_servers', "Game Servers");
define('OGP_LANG_game_path', "Game Path");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Server name helps users to identify their servers.");
define('OGP_LANG_control_password', "Control password");
define('OGP_LANG_control_password_info', "This password is used for server control, such as RCON password. If the password is empty then other means are used.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "Hozzáadás után mod-ot is hozzá kell adni a szerverhez. Ez a szerver szerkesztésével lehetséges.");
define('OGP_LANG_game_servers', "Játék szerverek");
define('OGP_LANG_game_path', "Szerver elérési útja");
define('OGP_LANG_game_path_info', "A szerver abszolút elérési útja. Példa: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "A szerver abszolút elérési útja. Példa: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Szerver neve segít a felhasználóknak beazonosítani a szervereiket.");
define('OGP_LANG_control_password', "Vezérlőjelszó");
define('OGP_LANG_control_password_info', "Ez a jelszó a szerver vezérléséhez használandó, mint például az RCON jelszó. Ha a jelszó üres, akkor más eszközöket használnak.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "You need to add mods after adding server to user. This can be done by editing the server.");
define('OGP_LANG_game_servers', "Game Servers");
define('OGP_LANG_game_path', "Game Path");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Server name helps users to identify their servers.");
define('OGP_LANG_control_password', "Control password");
define('OGP_LANG_control_password_info', "This password is used for server control, such as RCON password. If the password is empty then other means are used.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "You need to add mods after adding server to user. This can be done by editing the server.");
define('OGP_LANG_game_servers', "Game Servers");
define('OGP_LANG_game_path', "Game Path");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Server name helps users to identify their servers.");
define('OGP_LANG_control_password', "Control password");
define('OGP_LANG_control_password_info', "This password is used for server control, such as RCON password. If the password is empty then other means are used.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "Trzeba dodać mody po dodaniu serwera do użytkownika. Można to zrobić poprzez edycję serwera..");
define('OGP_LANG_game_servers', "Game Servers");
define('OGP_LANG_game_path', "Game Path");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Nazwa serwera ułatwia użytkownikom do jednoznacznej identyfikacji swoich serwerów.");
define('OGP_LANG_control_password', "Hasło Control");
define('OGP_LANG_control_password_info', "To hasło jest używane do kontroli serwera, takich jak hasła RCON. Jeśli hasło jest puste to w inny sposób są wykorzystywane.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "You need to add mods after adding server to user. This can be done by editing the server.");
define('OGP_LANG_game_servers', "Game Servers");
define('OGP_LANG_game_path', "Game Path");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Server name helps users to identify their servers.");
define('OGP_LANG_control_password', "Control password");
define('OGP_LANG_control_password_info', "This password is used for server control, such as RCON password. If the password is empty then other means are used.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "Вам нужно добавить конфигурации для сервера. Это можно сделать в настройках сервера.");
define('OGP_LANG_game_servers', "Игровые Сервера");
define('OGP_LANG_game_path', "Путь");
define('OGP_LANG_game_path_info', "Полный и абсолютный путь к серверу. Пример /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "Полный и абсолютный путь к серверу. Пример /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Название может помочь определить сервер.");
define('OGP_LANG_control_password', "Пароль управления");
define('OGP_LANG_control_password_info', "Пароль используется для управления сервером, как RCON например. Если оставить пустым, то будут использоваться другие методы.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "You need to add mods after adding server to user. This can be done by editing the server.");
define('OGP_LANG_game_servers', "Game Servers");
define('OGP_LANG_game_path', "Game Path");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Server name helps users to identify their servers.");
define('OGP_LANG_control_password', "Control password");
define('OGP_LANG_control_password_info', "This password is used for server control, such as RCON password. If the password is empty then other means are used.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "Usted necesita agregar mods después de agregar el servidor al usuario.<br>Esto se puede hacer mediante la edición del servidor.");
define('OGP_LANG_game_servers', "Servidores de Juegos");
define('OGP_LANG_game_path', "Carpeta del juego");
define('OGP_LANG_game_path_info', "Una ruta absoluta del servidor. Ejemplo: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "Una ruta absoluta del servidor. Ejemplo: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Ayuda a identificar el servidor.");
define('OGP_LANG_control_password', "RCON");
define('OGP_LANG_control_password_info', "Esta contraseña se usa para el control del servidor, en algunos casos se utiliza para RCON, o como contraseña de serveradmin en TS3. Si la contraseña esta vacía algunas funciones podrían no estar disponibles.");

View file

@ -6,7 +6,7 @@
define('OGP_LANG_add_mods_note', "You need to add mods after adding server to user. This can be done by editing the server.");
define('OGP_LANG_game_servers', "Game Servers");
define('OGP_LANG_game_path', "Game Path");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/User_Files/My_Server");
define('OGP_LANG_game_path_info', "An absolute server path. Example: /home/ogpbot/OGP_User_Files/My_Server");
define('OGP_LANG_game_server_name_info', "Server name helps users to identify their servers.");
define('OGP_LANG_control_password', "Control password");
define('OGP_LANG_control_password_info', "This password is used for server control, such as RCON password. If the password is empty then other means are used.");

View file

@ -510,7 +510,7 @@ function api_user_games()
}
}
else
$game_path = "/home/".$remote_server['ogp_user']."/User_Files/"; // Default
$game_path = "/home/".$remote_server['ogp_user']."/OGP_User_Files/"; // Default
$game_path = clean_path($game_path); // Clean it
@ -611,7 +611,7 @@ function api_user_games()
}
}
else
$game_path = "/home/".$game_home['ogp_user']."/User_Files/"; // Default
$game_path = "/home/".$game_home['ogp_user']."/OGP_User_Files/"; // Default
$game_path = clean_path($game_path); // Clean it
@ -1212,7 +1212,7 @@ function api_gamemanager()
$postInstallCMD = "";
if(isset($server_xml->post_install))
$postInstallCMD .= $server_xml->post_install;
$postInstallCMD .= "\n{LOCK_FILE} " . $home_info['home_path'] . "/" . ($server_xml->exe_location ? $server_xml->exe_location . "/" : "") . $server_xml->server_exec_name;
$postInstallCMD .= "\n{OGP_LOCK_FILE} " . $home_info['home_path'] . "/" . ($server_xml->exe_location ? $server_xml->exe_location . "/" : "") . $server_xml->server_exec_name;
$remote->steam_cmd($home_info['home_id'],$home_info['home_path'],$installer_name,$modname,
$betaname,$betapwd,$login,$pass,$settings['steam_guard'],
@ -1320,7 +1320,7 @@ function api_gamemanager()
$postInstallCMD = "";
if(isset($server_xml->post_install))
$postInstallCMD .= $server_xml->post_install;
$postInstallCMD .= "\n{LOCK_FILE} " . $home_info['home_path'] . "/" . ($server_xml->exe_location ? $server_xml->exe_location . "/" : "") . $server_xml->server_exec_name;
$postInstallCMD .= "\n{OGP_LOCK_FILE} " . $home_info['home_path'] . "/" . ($server_xml->exe_location ? $server_xml->exe_location . "/" : "") . $server_xml->server_exec_name;
$remote->start_rsync_install($home_id,$home_info['home_path'],"$full_url",$exec_folder_path,$exec_path,$preInstallCMD,$postInstallCMD);
$status = "200";
@ -1343,7 +1343,7 @@ function api_gamemanager()
$postInstallCMD = "";
if(isset($server_xml->post_install))
$postInstallCMD .= $server_xml->post_install;
$postInstallCMD .= "\n{LOCK_FILE} " . $home_info['home_path'] . "/" . ($server_xml->exe_location ? $server_xml->exe_location . "/" : "") . $server_xml->server_exec_name;
$postInstallCMD .= "\n{OGP_LOCK_FILE} " . $home_info['home_path'] . "/" . ($server_xml->exe_location ? $server_xml->exe_location . "/" : "") . $server_xml->server_exec_name;
$remote->start_file_download($manual_url,$home_info['home_path'],$filename,"uncompress",$postInstallCMD);
$status = "200";
$message = "Manual installation started";
@ -1371,7 +1371,7 @@ function api_gamemanager()
$postInstallCMD = "";
if(isset($server_xml->post_install))
$postInstallCMD .= $server_xml->post_install;
$postInstallCMD .= "\n{LOCK_FILE} " . $home_info['home_path'] . "/" . ($server_xml->exe_location ? $server_xml->exe_location . "/" : "") . $server_xml->server_exec_name;
$postInstallCMD .= "\n{OGP_LOCK_FILE} " . $home_info['home_path'] . "/" . ($server_xml->exe_location ? $server_xml->exe_location . "/" : "") . $server_xml->server_exec_name;
$remote->masterServerUpdate($home_id,$home_info['home_path'],$ms_home_id,$ms_info['home_path'],$exec_folder_path,$exec_path,$preInstallCMD,$postInstallCMD);
$status = "200";