Browse Source

unreal2 server log dir now works

pull/254/merge
Daniel Gibbs 11 years ago
parent
commit
51f6005483
  1. 9
      functions/fn_loginstall

9
functions/fn_loginstall

@ -2,7 +2,7 @@
# LGSM fn_loginstall function # LGSM fn_loginstall function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk # Website: http://danielgibbs.co.uk
# Version: 231114 # Version: 241114
echo "Creating log directorys" echo "Creating log directorys"
echo "=================================" echo "================================="
@ -13,13 +13,16 @@ mkdir -pv "${scriptlogdir}"
touch "${scriptlog}" touch "${scriptlog}"
mkdir -pv "${consolelogdir}" mkdir -pv "${consolelogdir}"
touch "${consolelog}" touch "${consolelog}"
# if a server is source or goldsource create a symbolic link to the game server logs # If a server is source or goldsource create a symbolic link to the game server logs
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]; then
if [ ! -h ${rootdir}/log/server ]; then if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server" ln -sv "${gamelogdir}" "${rootdir}/log/server"
else else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!" echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi fi
fi fi
# If a server is unreal2 create a dir
if [ "${engine}" == "unreal2" ]; then
mkdir -pv ${gamelogdir}
sleep 1 sleep 1
echo "" echo ""
Loading…
Cancel
Save