|
@@ -467,9 +467,9 @@ fi
|
|
|
fn_currentstatus_tmux(){
|
|
fn_currentstatus_tmux(){
|
|
|
check_status.sh
|
|
check_status.sh
|
|
|
if [ "${status}" != "0" ]; then
|
|
if [ "${status}" != "0" ]; then
|
|
|
- currentstatus="ONLINE"
|
|
|
|
|
|
|
+ currentstatus="STARTED"
|
|
|
else
|
|
else
|
|
|
- currentstatus="OFFLINE"
|
|
|
|
|
|
|
+ currentstatus="STOPPED"
|
|
|
fi
|
|
fi
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -484,7 +484,7 @@ fn_setstatus(){
|
|
|
fn_currentstatus_tmux
|
|
fn_currentstatus_tmux
|
|
|
echo -en "New status: ${currentstatus}\\r"
|
|
echo -en "New status: ${currentstatus}\\r"
|
|
|
|
|
|
|
|
- if [ "${requiredstatus}" == "ONLINE" ]; then
|
|
|
|
|
|
|
+ if [ "${requiredstatus}" == "STARTED" ]; then
|
|
|
(command_start.sh > /dev/null 2>&1)
|
|
(command_start.sh > /dev/null 2>&1)
|
|
|
else
|
|
else
|
|
|
(command_stop.sh > /dev/null 2>&1)
|
|
(command_stop.sh > /dev/null 2>&1)
|
|
@@ -754,7 +754,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "start ${gamename} server."
|
|
echo -e "start ${gamename} server."
|
|
|
echo -e "Command: ./${gameservername} start"
|
|
echo -e "Command: ./${gameservername} start"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -773,7 +773,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "start ${gamename} server while already running."
|
|
echo -e "start ${gamename} server while already running."
|
|
|
echo -e "Command: ./${gameservername} start"
|
|
echo -e "Command: ./${gameservername} start"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -792,7 +792,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "will update server on start."
|
|
echo -e "will update server on start."
|
|
|
echo -e "Command: ./${gameservername} start"
|
|
echo -e "Command: ./${gameservername} start"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -811,7 +811,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "stop ${gamename} server."
|
|
echo -e "stop ${gamename} server."
|
|
|
echo -e "Command: ./${gameservername} stop"
|
|
echo -e "Command: ./${gameservername} stop"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -830,7 +830,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "stop ${gamename} server while already stopped."
|
|
echo -e "stop ${gamename} server while already stopped."
|
|
|
echo -e "Command: ./${gameservername} stop"
|
|
echo -e "Command: ./${gameservername} stop"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -849,7 +849,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "restart ${gamename}."
|
|
echo -e "restart ${gamename}."
|
|
|
echo -e "Command: ./${gameservername} restart"
|
|
echo -e "Command: ./${gameservername} restart"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -868,7 +868,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "restart ${gamename} while already stopped."
|
|
echo -e "restart ${gamename} while already stopped."
|
|
|
echo -e "Command: ./${gameservername} restart"
|
|
echo -e "Command: ./${gameservername} restart"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -891,7 +891,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "check for updates."
|
|
echo -e "check for updates."
|
|
|
echo -e "Command: ./${gameservername} update"
|
|
echo -e "Command: ./${gameservername} update"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -910,7 +910,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "change the buildid tricking SteamCMD to update."
|
|
echo -e "change the buildid tricking SteamCMD to update."
|
|
|
echo -e "Command: ./jc2server update"
|
|
echo -e "Command: ./jc2server update"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
fn_print_info_nl "changed buildid to 0."
|
|
fn_print_info_nl "changed buildid to 0."
|
|
|
sed -i 's/[0-9]\+/0/' "${serverfiles}/steamapps/appmanifest_${appid}.acf"
|
|
sed -i 's/[0-9]\+/0/' "${serverfiles}/steamapps/appmanifest_${appid}.acf"
|
|
@@ -931,7 +931,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "change the buildid tricking SteamCMD to update server while already running."
|
|
echo -e "change the buildid tricking SteamCMD to update server while already running."
|
|
|
echo -e "Command: ./jc2server update"
|
|
echo -e "Command: ./jc2server update"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
fn_print_info_nl "changed buildid to 0."
|
|
fn_print_info_nl "changed buildid to 0."
|
|
|
sed -i 's/[0-9]\+/0/' "${serverfiles}/steamapps/appmanifest_${appid}.acf"
|
|
sed -i 's/[0-9]\+/0/' "${serverfiles}/steamapps/appmanifest_${appid}.acf"
|
|
@@ -952,7 +952,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "removing appmanifest file will cause script to repair."
|
|
echo -e "removing appmanifest file will cause script to repair."
|
|
|
echo -e "Command: ./jc2server update"
|
|
echo -e "Command: ./jc2server update"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
fn_print_info_nl "removed appmanifest_${appid}.acf."
|
|
fn_print_info_nl "removed appmanifest_${appid}.acf."
|
|
|
rm --verbose "${serverfiles:?}/steamapps/appmanifest_${appid}.acf"
|
|
rm --verbose "${serverfiles:?}/steamapps/appmanifest_${appid}.acf"
|
|
@@ -973,7 +973,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "force-update bypassing update check."
|
|
echo -e "force-update bypassing update check."
|
|
|
echo -e "Command: ./jc2server force-update"
|
|
echo -e "Command: ./jc2server force-update"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -992,7 +992,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "force-update bypassing update check server while already running."
|
|
echo -e "force-update bypassing update check server while already running."
|
|
|
echo -e "Command: ./jc2server force-update"
|
|
echo -e "Command: ./jc2server force-update"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1011,7 +1011,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "validate server files."
|
|
echo -e "validate server files."
|
|
|
echo -e "Command: ./jc2server validate"
|
|
echo -e "Command: ./jc2server validate"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1031,7 +1031,7 @@ echo -e "Description:"
|
|
|
echo -e "validate server files while server already running."
|
|
echo -e "validate server files while server already running."
|
|
|
echo -e ""
|
|
echo -e ""
|
|
|
echo -e "Command: ./jc2server validate"
|
|
echo -e "Command: ./jc2server validate"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1051,7 +1051,7 @@ echo -e "Description:"
|
|
|
echo -e "update LinuxGSM."
|
|
echo -e "update LinuxGSM."
|
|
|
echo -e ""
|
|
echo -e ""
|
|
|
echo -e "Command: ./jc2server update-lgam"
|
|
echo -e "Command: ./jc2server update-lgam"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1092,7 +1092,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "run monitor server while already running."
|
|
echo -e "run monitor server while already running."
|
|
|
echo -e "Command: ./${gameservername} monitor"
|
|
echo -e "Command: ./${gameservername} monitor"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1111,7 +1111,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "run monitor while server is offline with lockfile."
|
|
echo -e "run monitor while server is offline with lockfile."
|
|
|
echo -e "Command: ./${gameservername} monitor"
|
|
echo -e "Command: ./${gameservername} monitor"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
fn_print_info_nl "creating lockfile."
|
|
fn_print_info_nl "creating lockfile."
|
|
|
date '+%s' > "${lockdir}/${selfname}.lock"
|
|
date '+%s' > "${lockdir}/${selfname}.lock"
|
|
@@ -1134,7 +1134,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "run monitor while server is offline with no lockfile."
|
|
echo -e "run monitor while server is offline with no lockfile."
|
|
|
echo -e "Command: ./${gameservername} monitor"
|
|
echo -e "Command: ./${gameservername} monitor"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1153,7 +1153,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "run monitor while server is offline with no lockfile."
|
|
echo -e "run monitor while server is offline with no lockfile."
|
|
|
echo -e "Command: ./${gameservername} test-alert"
|
|
echo -e "Command: ./${gameservername} test-alert"
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
cp "${servercfgfullpath}" "config.lua"
|
|
cp "${servercfgfullpath}" "config.lua"
|
|
|
sed -i 's/[0-9]\+/0/' "${servercfgfullpath}"
|
|
sed -i 's/[0-9]\+/0/' "${servercfgfullpath}"
|
|
@@ -1183,7 +1183,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "display details."
|
|
echo -e "display details."
|
|
|
echo -e "Command: ./${gameservername} details"
|
|
echo -e "Command: ./${gameservername} details"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1202,7 +1202,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "post details."
|
|
echo -e "post details."
|
|
|
echo -e "Command: ./${gameservername} postdetails"
|
|
echo -e "Command: ./${gameservername} postdetails"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1225,7 +1225,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "run a backup."
|
|
echo -e "run a backup."
|
|
|
echo -e "Command: ./${gameservername} backup"
|
|
echo -e "Command: ./${gameservername} backup"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
echo -e "test de-activated until issue #1839 fixed"
|
|
echo -e "test de-activated until issue #1839 fixed"
|
|
|
#(command_backup.sh)
|
|
#(command_backup.sh)
|
|
@@ -1244,7 +1244,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "detect glibc."
|
|
echo -e "detect glibc."
|
|
|
echo -e "Command: ./${gameservername} detect-glibc"
|
|
echo -e "Command: ./${gameservername} detect-glibc"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1263,7 +1263,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "detect ldd."
|
|
echo -e "detect ldd."
|
|
|
echo -e "Command: ./${gameservername} detect-ldd"
|
|
echo -e "Command: ./${gameservername} detect-ldd"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1282,7 +1282,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "detect dependencies."
|
|
echo -e "detect dependencies."
|
|
|
echo -e "Command: ./${gameservername} detect-deps"
|
|
echo -e "Command: ./${gameservername} detect-deps"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1301,7 +1301,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "raw query output."
|
|
echo -e "raw query output."
|
|
|
echo -e "Command: ./${gameservername} query-raw"
|
|
echo -e "Command: ./${gameservername} query-raw"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1324,7 +1324,7 @@ echo -e "================================="
|
|
|
echo -e "Description:"
|
|
echo -e "Description:"
|
|
|
echo -e "donate."
|
|
echo -e "donate."
|
|
|
echo -e "Command: ./${gameservername} donate"
|
|
echo -e "Command: ./${gameservername} donate"
|
|
|
-requiredstatus="ONLINE"
|
|
|
|
|
|
|
+requiredstatus="STARTED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
(
|
|
(
|
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
exec 5>"${TRAVIS_BUILD_DIR}/dev-debug.log"
|
|
@@ -1342,6 +1342,6 @@ echo -e "================================="
|
|
|
echo -e "Server Tests - Complete!"
|
|
echo -e "Server Tests - Complete!"
|
|
|
echo -e "Using: ${gamename}"
|
|
echo -e "Using: ${gamename}"
|
|
|
echo -e "================================="
|
|
echo -e "================================="
|
|
|
-requiredstatus="OFFLINE"
|
|
|
|
|
|
|
+requiredstatus="STOPPED"
|
|
|
fn_setstatus
|
|
fn_setstatus
|
|
|
core_exit.sh
|
|
core_exit.sh
|