|
@@ -74,7 +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))
|
|
|
- cd "${steamcmddir}" || exit
|
|
|
|
|
|
|
+ if [ "${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.
|
|
@@ -104,18 +106,18 @@ fn_install_server_files_steamcmd(){
|
|
|
|
|
|
|
|
if [ "${counter}" -le "4" ]; then
|
|
if [ "${counter}" -le "4" ]; then
|
|
|
if [ "${appid}" == "90" ]; then
|
|
if [ "${appid}" == "90" ]; then
|
|
|
- ${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" -beta "${branch}" +quit
|
|
|
|
|
|
|
+ ${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" -beta "${branch}" +quit
|
|
|
local exitcode=$?
|
|
local exitcode=$?
|
|
|
else
|
|
else
|
|
|
- ${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" -beta "${branch}" +quit
|
|
|
|
|
|
|
+ ${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" -beta "${branch}" +quit
|
|
|
local exitcode=$?
|
|
local exitcode=$?
|
|
|
fi
|
|
fi
|
|
|
elif [ "${counter}" -ge "5" ]; then
|
|
elif [ "${counter}" -ge "5" ]; then
|
|
|
if [ "${engine}" == "goldsource" ]; then
|
|
if [ "${engine}" == "goldsource" ]; then
|
|
|
- ${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" -beta "${branch}" validate +quit
|
|
|
|
|
|
|
+ ${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" -beta "${branch}" validate +quit
|
|
|
local exitcode=$?
|
|
local exitcode=$?
|
|
|
else
|
|
else
|
|
|
- ${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" -beta "${branch}" validate +quit
|
|
|
|
|
|
|
+ ${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" -beta "${branch}" validate +quit
|
|
|
local exitcode=$?
|
|
local exitcode=$?
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|
|
@@ -133,7 +135,7 @@ fn_install_server_files_steamcmd(){
|
|
|
counter="0"
|
|
counter="0"
|
|
|
while [ "${counter}" -le "4" ]; do
|
|
while [ "${counter}" -le "4" ]; do
|
|
|
counter=$((counter+1))
|
|
counter=$((counter+1))
|
|
|
- ${unbuffer} ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" "${branch}" validate +quit
|
|
|
|
|
|
|
+ ${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" "${branch}" validate +quit
|
|
|
local exitcode=$?
|
|
local exitcode=$?
|
|
|
done
|
|
done
|
|
|
fi
|
|
fi
|