|
@@ -9,7 +9,7 @@ local commandaction="Install"
|
|
|
local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
|
|
local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
|
|
|
|
|
|
|
|
fn_install_server_files(){
|
|
fn_install_server_files(){
|
|
|
- if [ "${shortname}" == "ahl" ]; then
|
|
|
|
|
|
|
+ if [ "${shortname}" == "ahl" ]; then
|
|
|
remote_fileurl="http://files.linuxgsm.com/ActionHalfLife/action_halflife-1.0.tar.bz2"; local_filedir="${tmpdir}"; local_filename="action_halflife-1.0.tar.bz2"; chmodx="nochmodx" run="norun"; force="noforce"; md5="31430e670692b2eeaa0d1217db4dcb73"
|
|
remote_fileurl="http://files.linuxgsm.com/ActionHalfLife/action_halflife-1.0.tar.bz2"; local_filedir="${tmpdir}"; local_filename="action_halflife-1.0.tar.bz2"; chmodx="nochmodx" run="norun"; force="noforce"; md5="31430e670692b2eeaa0d1217db4dcb73"
|
|
|
elif [ "${shortname}" == "bf1942" ]; then
|
|
elif [ "${shortname}" == "bf1942" ]; then
|
|
|
remote_fileurl="http://files.linuxgsm.com/BattleField1942/bf1942_lnxded-1.61-hacked-to-1.612.full.tar.bz2"; local_filedir="${tmpdir}"; local_filename="bf1942_lnxded-1.61-hacked-to-1.612.full.tar.bz2"; chmodx="nochmodx" run="norun"; force="noforce"; md5="a86a5d3cd64ca59abcc9bb9f777c2e5d"
|
|
remote_fileurl="http://files.linuxgsm.com/BattleField1942/bf1942_lnxded-1.61-hacked-to-1.612.full.tar.bz2"; local_filedir="${tmpdir}"; local_filename="bf1942_lnxded-1.61-hacked-to-1.612.full.tar.bz2"; chmodx="nochmodx" run="norun"; force="noforce"; md5="a86a5d3cd64ca59abcc9bb9f777c2e5d"
|
|
@@ -74,9 +74,9 @@ fn_install_server_files_steamcmd(){
|
|
|
counter="0"
|
|
counter="0"
|
|
|
while [ "${counter}" == "0" ]||[ "${exitcode}" != "0" ]; do
|
|
while [ "${counter}" == "0" ]||[ "${exitcode}" != "0" ]; do
|
|
|
counter=$((counter+1))
|
|
counter=$((counter+1))
|
|
|
- if [ -d "${steamcmddir}" ]; then
|
|
|
|
|
- cd "${steamcmddir}" || exit
|
|
|
|
|
- fi
|
|
|
|
|
|
|
+ if [ -d "${steamcmddir}" ]; then
|
|
|
|
|
+ cd "${steamcmddir}" || exit
|
|
|
|
|
+ fi
|
|
|
if [ "${counter}" -le "10" ]; then
|
|
if [ "${counter}" -le "10" ]; then
|
|
|
# Attempt 1-4: Standard attempt.
|
|
# Attempt 1-4: Standard attempt.
|
|
|
# Attempt 5-6: Validate attempt.
|
|
# Attempt 5-6: Validate attempt.
|