Browse Source

Merged hotfix/ultimatebyte-0219 into develop

pull/1354/head
Daniel Gibbs 8 years ago
parent
commit
fc376fcb7c
  1. 1
      lgsm/functions/command_console.sh
  2. 20
      lgsm/functions/install_logs.sh

1
lgsm/functions/command_console.sh

@ -16,7 +16,6 @@ echo ""
if ! fn_prompt_yn "Continue?" Y; then if ! fn_prompt_yn "Continue?" Y; then
echo Exiting; return echo Exiting; return
fi fi
done
fn_print_dots "Accessing console" fn_print_dots "Accessing console"
sleep 1 sleep 1
check_status.sh check_status.sh

20
lgsm/functions/install_logs.sh

@ -14,7 +14,7 @@ if [ "${checklogs}" != "1" ]; then
echo "=================================" echo "================================="
fi fi
sleep 1 sleep 1
# Create dir's for the script and console logs # Create script and console log directories
mkdir -v "${rootdir}/log" mkdir -v "${rootdir}/log"
mkdir -v "${scriptlogdir}" mkdir -v "${scriptlogdir}"
touch "${scriptlog}" touch "${scriptlog}"
@ -23,23 +23,23 @@ if [ -n "${consolelogdir}" ]; then
touch "${consolelog}" touch "${consolelog}"
fi fi
# If a server is source or goldsource, TeamSpeak 3, Starbound, Project Zomhoid create a symbolic link to the game server logs. # Create gamelogdir if variable exists but directory does not
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]||[ "${gamename}" == "TeamSpeak 3" ]||[ "${engine}" == "starbound" ]||[ "${engine}" == "projectzomboid" ]||[ "${engine}" == "unreal" ]; then if [ -n "${gamelogdir}" ]&&[ ! -d "${gamelogdir}" ]; then
mkdir -pv "${gamelogdir}"
fi
# Symlink gamelogdir to lgsm logs if variable exists
if [ -n "${gamelogdir}" ]; then
if [ ! -h "${rootdir}/log/server" ]; then if [ ! -h "${rootdir}/log/server" ]; then
ln -nfsv "${gamelogdir}" "${rootdir}/log/server" ln -nfsv "${gamelogdir}" "${rootdir}/log/server"
fi fi
fi fi
# If a server is unreal2 or unity3d create a dir. # If server uses SteamCMD create a symbolic link to the Steam logs
if [ "${engine}" == "unreal2" ]||[ "${engine}" == "unity3d" ]||[ "${gamename}" == "Teeworlds" ]||[ "${gamename}" == "seriousengine35" ]; then
mkdir -pv "${gamelogdir}"
fi
# If server uses SteamCMD create a symbolic link to the Steam logs.
if [ -d "${rootdir}/Steam/logs" ]; then if [ -d "${rootdir}/Steam/logs" ]; then
if [ ! -h "${rootdir}/log/steamcmd" ]; then if [ ! -h "${rootdir}/log/steamcmd" ]; then
ln -nfsv "${rootdir}/Steam/logs" "${rootdir}/log/steamcmd" ln -nfsv "${rootdir}/Steam/logs" "${rootdir}/log/steamcmd"
fi fi
fi fi
sleep 1 sleep 1
fn_script_log_info "Logs installed" fn_script_log_info "Logs installed"

Loading…
Cancel
Save