|
@ -169,9 +169,9 @@ fn_setstatus(){ |
|
|
echo "Required status: ${requiredstatus}" |
|
|
echo "Required status: ${requiredstatus}" |
|
|
counter=0 |
|
|
counter=0 |
|
|
echo "Current status: ${currentstatus}" |
|
|
echo "Current status: ${currentstatus}" |
|
|
while [ "${requiredstatus}" != "${currentstatus}" ]; do |
|
|
while [ "${requiredstatus}" != "${currentstatus}" ]; do |
|
|
counter=$((counter+1)) |
|
|
counter=$((counter+1)) |
|
|
fn_currentstatus_tmux |
|
|
fn_currentstatus_tmux |
|
|
echo -ne "New status: ${currentstatus}\\r" |
|
|
echo -ne "New status: ${currentstatus}\\r" |
|
|
|
|
|
|
|
|
if [ "${requiredstatus}" == "ONLINE" ]; then |
|
|
if [ "${requiredstatus}" == "ONLINE" ]; then |
|
@ -379,7 +379,7 @@ fn_setstatus |
|
|
(command_restart.sh) |
|
|
(command_restart.sh) |
|
|
fn_test_result_pass |
|
|
fn_test_result_pass |
|
|
|
|
|
|
|
|
echo "4.1 - update" |
|
|
echo "4.1 - update - Offline" |
|
|
echo "=================================" |
|
|
echo "=================================" |
|
|
echo "Description:" |
|
|
echo "Description:" |
|
|
echo "check for updates." |
|
|
echo "check for updates." |
|
@ -389,6 +389,16 @@ fn_setstatus |
|
|
(command_update.sh) |
|
|
(command_update.sh) |
|
|
fn_test_result_pass |
|
|
fn_test_result_pass |
|
|
|
|
|
|
|
|
|
|
|
echo "4.2 - update - Online" |
|
|
|
|
|
echo "=================================" |
|
|
|
|
|
echo "Description:" |
|
|
|
|
|
echo "check for updates." |
|
|
|
|
|
echo "Command: ./jc2server update" |
|
|
|
|
|
requiredstatus="ONLINE" |
|
|
|
|
|
fn_setstatus |
|
|
|
|
|
(command_update.sh) |
|
|
|
|
|
fn_test_result_pass |
|
|
|
|
|
|
|
|
echo "" |
|
|
echo "" |
|
|
echo "4.2 - update - change buildid" |
|
|
echo "4.2 - update - change buildid" |
|
|
echo "=================================" |
|
|
echo "=================================" |
|
|