Adjust Soldat deploy for easier gamemode switching

This commit is contained in:
DeathByDenim 2022-07-01 12:34:41 -04:00
parent adb9bdec00
commit e17743f6db
Signed by: DeathByDenim
GPG Key ID: 4A475283D925365B
1 changed files with 40 additions and 20 deletions

View File

@ -31,7 +31,7 @@ fi
rm -rf ${builddir} rm -rf ${builddir}
cat > /opt/soldat/bin/configs/server.cfg <<EOF cat > /opt/soldat/bin/configs/server_dm.cfg <<EOF
sv_hostname "onFOSS LAN" sv_hostname "onFOSS LAN"
bots_random_alpha 0 bots_random_alpha 0
sv_gamemode 0 sv_gamemode 0
@ -40,6 +40,18 @@ sv_website ${DOMAINNAME}
bots_chat false bots_chat false
EOF EOF
cat > /opt/soldat/bin/configs/server_ctf.cfg <<EOF
sv_hostname "onFOSS LAN"
bots_random_alpha 0
sv_gamemode 3
sv_greeting "Welcome to the onFOSS LAN server"
sv_website ${DOMAINNAME}
bots_chat false
sv_maplist "mapslist_ctf.txt"
EOF
ln -s ./server_dm.cfg /opt/soldat/bin/configs/server.cfg
cat > /opt/soldat/bin/configs/mapslist.txt <<EOF cat > /opt/soldat/bin/configs/mapslist.txt <<EOF
Aero Aero
Airpirates Airpirates
@ -51,8 +63,28 @@ Blox
Bridge Bridge
Bunker Bunker
Cambodia Cambodia
changelog.txt
CrackedBoot CrackedBoot
Daybreak
DesertWind
Factory
Flashback
HH
Island2k5
Jungle
Krab
Lagrange
Leaf
MrSnowman
RatCave
Rok
RR
Shau
Tropiccave
Unlim
Veoto
EOF
cat > /opt/soldat/bin/configs/mapslist_ctf.txt <<EOF
ctf_Aftermath ctf_Aftermath
ctf_Amnesia ctf_Amnesia
ctf_Ash ctf_Ash
@ -87,11 +119,9 @@ ctf_Viet
ctf_Voland ctf_Voland
ctf_Wretch ctf_Wretch
ctf_X ctf_X
Daybreak EOF
DesertWind
Factory cat > /opt/soldat/bin/configs/mapslist_htf.txt <<EOF
Flashback
HH
htf_Arch htf_Arch
htf_Baire htf_Baire
htf_Boxed htf_Boxed
@ -111,6 +141,9 @@ htf_Tower
htf_Void htf_Void
htf_Vortex htf_Vortex
htf_Zajacz htf_Zajacz
EOF
cat > /opt/soldat/bin/configs/mapslist_inf.txt <<EOF
inf_Abel inf_Abel
inf_April inf_April
inf_Argy inf_Argy
@ -128,19 +161,6 @@ inf_Rescue
inf_Rise inf_Rise
inf_Warehouse inf_Warehouse
inf_Warlock inf_Warlock
Island2k5
Jungle
Krab
Lagrange
Leaf
MrSnowman
RatCave
Rok
RR
Shau
Tropiccave
Unlim
Veoto
EOF EOF
chown -R ${systemuser}: /opt/soldat/bin/configs chown -R ${systemuser}: /opt/soldat/bin/configs