csgo-start-script/csgo-start

45 lines
1.2 KiB
Plaintext
Raw Normal View History

#!/bin/bash
# ×=================================×
# | bukkit-start by Elias Schriefer |
# ×=================================×
if [ "$1" = "-h" ]
then
echo "bukkit-start [option]"
echo
echo "Options:"
echo " -h Show help"
echo " -D starts Death Mach"
echo " -d starts Demolition"
echo "-C starts Classic Casual"
exit 0
fi
# Get the bukkit server status: is it running or stopped?
# We don't need echo, but thx anyways...
csgo-status > /dev/null
if [ $? -gt 0 ]
then
cd /home/steam/
sudo -u steam ./steamcmd.sh +login anonymous +force_install_dir /media/games/steamgames +app_update 740 +quit
cd /media/games/steamgames
case "$1" in
-D) sudo -u steam screen -dmS csgo ./srcds_run -game csgo -console -usercon +game_type 1 +game_mode 2 +mapgroup mg_allclassic +map de_dust
true
;;
-d) sudo -u steam screen -dmS csgo ./srcds_run -game csgo -console -usercon +game_type 1 +game_mode 1 +mapgroup mg_demolition +map de_lake
true
;;
-C) sudo -u steam screen -dmS csgo ./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2
esac
else
# or my unsuxesvul eksit koud...
false
fi
# and eksit wif that eksit koud
exit $?