Browse Source

migrated fn_loginstall

migrated fn_loginstall. Fixed issue with symbolic link for server logs
being created even if it does not exit for that server.
pull/254/merge
Daniel Gibbs 11 years ago
parent
commit
c818a2adff
  1. 24
      Arma3/arma3server
  2. 20
      BladeSymphony/bsserver
  3. 22
      CounterStrike/csserver
  4. 22
      CounterStrikeConditionZero/csczserver
  5. 22
      CounterStrikeGlobalOffensive/csgoserver
  6. 22
      CounterStrikeSource/cssserver
  7. 22
      DayOfDefeat/dodserver
  8. 22
      DayOfDefeatSource/dodsserver
  9. 22
      FistfulOfFrags/fofserver
  10. 22
      GarrysMod/gmodserver
  11. 22
      HalfLife2Deathmatch/hl2dmserver
  12. 22
      HalfLifeDeathmatchClassic/hldmcserver
  13. 22
      Insurgency/insserver
  14. 24
      JustCause2/jc2server
  15. 22
      KillingFloor/kfserver
  16. 22
      Left4Dead/l4dserver
  17. 22
      Left4Dead2/l4d2server
  18. 22
      NaturalSelection2/ns2server
  19. 22
      NoMoreRoomInHell/nmrihserver
  20. 22
      RedOrchestra/roserver
  21. 22
      TeamFortress2/tf2server
  22. 22
      TeamFortressClassic/tfcserver
  23. 21
      UnrealTournament2004/ut2k4server
  24. 19
      UnrealTournament99/ut99server
  25. 25
      functions/fn_loginstall

24
Arma3/arma3server

@ -4,7 +4,7 @@
# Author: Daniel Gibbs
# Contributor: Scarsz
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -55,7 +55,7 @@ masterport=$(sed -n -e '12 p' ${servercfgfullpath} 2>/dev/null| sed 's/[\/\; ]//
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
#gamelogdir="" # No server logs available
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
@ -714,21 +714,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

20
BladeSymphony/bsserver

@ -704,21 +704,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_steamfix ]; then
functionfile="fn_steamfix"
fn_fninstall
fi
source ${rootdir}/functions/fn_steamfix
}
fn_getquery(){

22
CounterStrike/csserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -695,21 +695,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
CounterStrikeConditionZero/csczserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -695,21 +695,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
CounterStrikeGlobalOffensive/csgoserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -781,21 +781,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
CounterStrikeSource/cssserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -696,21 +696,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
DayOfDefeat/dodserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 061014
# Version: 231114
#### Variables ####
@ -695,21 +695,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
DayOfDefeatSource/dodsserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -704,21 +704,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
FistfulOfFrags/fofserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -704,21 +704,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
GarrysMod/gmodserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -709,21 +709,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
HalfLife2Deathmatch/hl2dmserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -696,21 +696,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
HalfLifeDeathmatchClassic/hldmcserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -695,21 +695,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
Insurgency/insserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -704,21 +704,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

24
JustCause2/jc2server

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 221114
# Version: 231114
#### Variables ####
@ -53,7 +53,7 @@ servername=$(grep -s hostname "${servercfgfullpath}"|sed 's/hostname //g'|sed 's
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
#gamelogdir="" # No server logs available
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
@ -690,21 +690,11 @@ echo ""
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_jc2config(){

22
KillingFloor/kfserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -720,21 +720,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
Left4Dead/l4dserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -706,21 +706,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
Left4Dead2/l4d2server

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -695,21 +695,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
NaturalSelection2/ns2server

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -703,21 +703,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
NoMoreRoomInHell/nmrihserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -704,21 +704,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
RedOrchestra/roserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -716,21 +716,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
TeamFortress2/tf2server

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -696,21 +696,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

22
TeamFortressClassic/tfcserver

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -695,21 +695,11 @@ source ${rootdir}/functions/fn_steamfix
}
fn_loginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
if [ ! -h ${rootdir}/log/server ]; then
ln -sv "${gamelogdir}" "${rootdir}/log/server"
else
echo "Symbolic link ${gamelogdir} => ${rootdir}/log/server already exists!"
fi
sleep 1
echo ""
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

21
UnrealTournament2004/ut2k4server

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -736,19 +736,12 @@ done
echo ""
}
fn_utloginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
mkdir -pv "${gamelogdir}"
touch "${gamelog}"
sleep 1
echo ""
fn_loginstall(){
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

19
UnrealTournament99/ut99server

@ -3,7 +3,7 @@
# Server Management Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 121114
# Version: 231114
#### Variables ####
@ -715,17 +715,12 @@ done
echo ""
}
fn_utloginstall(){
echo "Creating log directorys"
echo "================================="
sleep 1
mkdir -pv "${rootdir}/log"
mkdir -pv "${scriptlogdir}"
touch "${scriptlog}"
mkdir -pv "${consolelogdir}"
touch "${consolelog}"
sleep 1
echo ""
fn_loginstall(){
if [ ! -f ${rootdir}/functions/fn_loginstall ]; then
functionfile="fn_loginstall"
fn_fninstall
fi
source ${rootdir}/functions/fn_loginstall
}
fn_getquery(){

25
functions/fn_loginstall

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