|
|
@@ -2,11 +2,13 @@
|
|
|
# Project: Game Server Managers - LinuxGSM
|
|
|
# Author: Daniel Gibbs
|
|
|
# License: MIT License, Copyright (c) 2017 Daniel Gibbs
|
|
|
-# Purpose: Counter-Strike: Global Offensive | Server Management Script
|
|
|
+# Purpose: Linux Game Server Management Script
|
|
|
# Contributors: https://github.com/GameServerManagers/LinuxGSM/graphs/contributors
|
|
|
# Documentation: https://github.com/GameServerManagers/LinuxGSM/wiki
|
|
|
# Website: https://gameservermanagers.com
|
|
|
|
|
|
+# DO NOT EDIT THIS FILE
|
|
|
+
|
|
|
# Debugging
|
|
|
if [ -f ".dev-debug" ]; then
|
|
|
exec 5>dev-debug.log
|
|
|
@@ -15,12 +17,11 @@ if [ -f ".dev-debug" ]; then
|
|
|
fi
|
|
|
|
|
|
version="170305"
|
|
|
+shortname="core"
|
|
|
+servername="core"
|
|
|
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
|
|
|
selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
|
|
|
servicename="${selfname}"
|
|
|
-shortname="core"
|
|
|
-servername="core"
|
|
|
-gamename="core"
|
|
|
lockselfname=".${servicename}.lock"
|
|
|
lgsmdir="${rootdir}/lgsm"
|
|
|
logdir="${rootdir}/log"
|
|
|
@@ -242,7 +243,6 @@ fn_install_file(){
|
|
|
cp -R "${selfname}" "${local_filename}"
|
|
|
sed -i -e "s/shortname=\"core\"/shortname=\"${shortname}\"/g" "${local_filename}"
|
|
|
sed -i -e "s/servername=\"core\"/servername=\"${servername}\"/g" "${local_filename}"
|
|
|
- sed -i -e "s/gamename=\"core\"/gamename=\"${gamename}\"/g" "${local_filename}"
|
|
|
echo "Installed ${gamename} server as ${local_filename}"
|
|
|
echo "./${local_filename} install"
|
|
|
exit
|