gameservergame-servergame-servershacktoberfestdedicated-game-serversgamelinuxgsmserverbashgaminglinuxmultiplayer-game-servershell
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
827 B
28 lines
827 B
#!/bin/bash
|
|
# LGSM fn_loginstall function
|
|
# Author: Daniel Gibbs
|
|
# Website: http://danielgibbs.co.uk
|
|
# Version: 241114
|
|
|
|
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
|
|
# If a server is unreal2 create a dir
|
|
if [ "${engine}" == "unreal2" ]; then
|
|
mkdir -pv ${gamelogdir}
|
|
sleep 1
|
|
echo ""
|