Skip to content

Commit d76291e

Browse files
committed
add script to ensure user is correct & move files
1 parent 9b7a67c commit d76291e

File tree

4 files changed

+143
-0
lines changed

4 files changed

+143
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Gameservers
2+
3+
A repository to track all our game servers configuration.

src/ensureuser.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
# checking $USER is not working if the script is run with "sudo -u someuser", but whoami works correctly.
4+
if [ "$(whoami)" != "gameserver" ]; then
5+
echo "Script must be run as user: gameserver"
6+
exit 255
7+
fi

src/lgsm/data/serverlist.csv

+133
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
ac,acserver,Assetto Corsa,ubuntu-22.04
2+
ahl,ahlserver,Action Half-Life,ubuntu-22.04
3+
ahl2,ahl2server,Action: Source,ubuntu-20.04
4+
ark,arkserver,ARK: Survival Evolved,ubuntu-22.04
5+
arma3,arma3server,ARMA 3,ubuntu-22.04
6+
armar,armarserver,Arma Reforger,ubuntu-20.04
7+
ats,atsserver,American Truck Simulator,ubuntu-22.04
8+
av,avserver,Avorion,ubuntu-22.04
9+
bb,bbserver,BrainBread,ubuntu-22.04
10+
bb2,bb2server,BrainBread 2,ubuntu-22.04
11+
bd,bdserver,Base Defense,ubuntu-22.04
12+
bf1942,bf1942server,Battlefield 1942,ubuntu-22.04
13+
bfv,bfvserver,Battlefield: Vietnam,ubuntu-22.04
14+
bmdm,bmdmserver,Black Mesa: Deathmatch,ubuntu-22.04
15+
bo,boserver,Ballistic Overkill,ubuntu-22.04
16+
bs,bsserver,Blade Symphony,ubuntu-22.04
17+
bt,btserver,Barotrauma,ubuntu-22.04
18+
btl,btlserver,BATTALION: Legacy,ubuntu-20.04
19+
cc,ccserver,Codename CURE,ubuntu-22.04
20+
cd,cdserver,Crafting Dead,ubuntu-22.04
21+
ck,ckserver,Core Keeper,ubuntu-22.04
22+
cmw,cmwserver,Chivalry: Medieval Warfare,ubuntu-22.04
23+
cod,codserver,Call of Duty,ubuntu-22.04
24+
cod2,cod2server,Call of Duty 2,ubuntu-22.04
25+
cod4,cod4server,Call of Duty 4,ubuntu-22.04
26+
coduo,coduoserver,Call of Duty: United Offensive,ubuntu-22.04
27+
codwaw,codwawserver,Call of Duty: World at War,ubuntu-22.04
28+
col,colserver,Colony Survival,ubuntu-22.04
29+
cs,csserver,Counter-Strike 1.6,ubuntu-22.04
30+
cscz,csczserver,Counter-Strike: Condition Zero,ubuntu-22.04
31+
csgo,csgoserver,Counter-Strike: Global Offensive,ubuntu-22.04
32+
css,cssserver,Counter-Strike: Source,ubuntu-22.04
33+
ct,ctserver,Craftopia,ubuntu-22.04
34+
dab,dabserver,Double Action: Boogaloo,ubuntu-22.04
35+
dayz,dayzserver,DayZ,ubuntu-22.04
36+
dmc,dmcserver,Deathmatch Classic,ubuntu-22.04
37+
dod,dodserver,Day of Defeat,ubuntu-22.04
38+
dodr,dodrserver,Day of Dragons,ubuntu-22.04
39+
dods,dodsserver,Day of Defeat: Source,ubuntu-22.04
40+
doi,doiserver,Day of Infamy,ubuntu-22.04
41+
dst,dstserver,Don't Starve Together,ubuntu-22.04
42+
dys,dysserver,Dystopia,ubuntu-22.04
43+
eco,ecoserver,Eco,ubuntu-22.04
44+
em,emserver,Empires Mod,ubuntu-22.04
45+
etl,etlserver,ET: Legacy,ubuntu-22.04
46+
ets2,ets2server,Euro Truck Simulator 2,ubuntu-22.04
47+
fctr,fctrserver,Factorio,ubuntu-22.04
48+
fof,fofserver,Fistful of Frags,ubuntu-22.04
49+
gmod,gmodserver,Garrys Mod,ubuntu-22.04
50+
hcu,hcuserver,HYPERCHARGE: Unboxed,ubuntu-22.04
51+
hl2dm,hl2dmserver,Half-Life 2: Deathmatch,ubuntu-22.04
52+
hldm,hldmserver,Half-Life: Deathmatch,ubuntu-22.04
53+
hldms,hldmsserver,Half-Life Deathmatch: Source,ubuntu-22.04
54+
hw,hwserver,Hurtworld,ubuntu-22.04
55+
ins,insserver,Insurgency,ubuntu-22.04
56+
inss,inssserver,Insurgency: Sandstorm,ubuntu-22.04
57+
ios,iosserver,IOSoccer,ubuntu-22.04
58+
jc2,jc2server,Just Cause 2,ubuntu-22.04
59+
jc3,jc3server,Just Cause 3,ubuntu-22.04
60+
jk2,jk2server,Jedi Knight II: Jedi Outcast,ubuntu-22.04
61+
kf,kfserver,Killing Floor,ubuntu-22.04
62+
kf2,kf2server,Killing Floor 2,ubuntu-22.04
63+
l4d,l4dserver,Left 4 Dead,ubuntu-22.04
64+
l4d2,l4d2server,Left 4 Dead 2,ubuntu-22.04
65+
lo,loserver,Last Oasis,ubuntu-22.04
66+
mc,mcserver,Minecraft,ubuntu-22.04
67+
mcb,mcbserver,Minecraft Bedrock,ubuntu-22.04
68+
mh,mhserver,MORDHAU,ubuntu-22.04
69+
mohaa,mohaaserver,Medal of Honor: Allied Assault,ubuntu-22.04
70+
mom,momserver,Memories of Mars,ubuntu-22.04
71+
mta,mtaserver,Multi Theft Auto,ubuntu-22.04
72+
nd,ndserver,Nuclear Dawn,ubuntu-22.04
73+
nec,necserver,Necesse,ubuntu-22.04
74+
nmrih,nmrihserver,No More Room in Hell,ubuntu-22.04
75+
ns,nsserver,Natural Selection,ubuntu-22.04
76+
ns2,ns2server,Natural Selection 2,ubuntu-22.04
77+
ns2c,ns2cserver,NS2: Combat,ubuntu-22.04
78+
ohd,ohdserver,Operation: Harsh Doorstop,ubuntu-22.04
79+
onset,onsetserver,Onset,ubuntu-20.04
80+
opfor,opforserver,Opposing Force,ubuntu-22.04
81+
pc,pcserver,Project Cars,ubuntu-22.04
82+
pc2,pc2server,Project Cars 2,ubuntu-22.04
83+
pmc,pmcserver,PaperMC,ubuntu-22.04
84+
pstbs,pstbsserver,Post Scriptum: The Bloody Seventh,ubuntu-22.04
85+
pvkii,pvkiiserver,Pirates Vikings & Knights II,ubuntu-22.04
86+
pvr,pvrserver,Pavlov VR,ubuntu-22.04
87+
pz,pzserver,Project Zomboid,ubuntu-22.04
88+
q2,q2server,Quake 2,ubuntu-22.04
89+
q3,q3server,Quake 3: Arena,ubuntu-22.04
90+
ql,qlserver,Quake Live,ubuntu-22.04
91+
qw,qwserver,Quake World,ubuntu-22.04
92+
ricochet,ricochetserver,Ricochet,ubuntu-22.04
93+
ro,roserver,Red Orchestra: Ostfront 41-45,ubuntu-22.04
94+
rtcw,rtcwserver,Return to Castle Wolfenstein,ubuntu-22.04
95+
rust,rustserver,Rust,ubuntu-22.04
96+
rw,rwserver,Rising World,ubuntu-22.04
97+
samp,sampserver,San Andreas Multiplayer,ubuntu-22.04
98+
sb,sbserver,Starbound,ubuntu-22.04
99+
sbots,sbotsserver,StickyBots,ubuntu-22.04
100+
scpsl,scpslserver,SCP: Secret Laboratory,ubuntu-22.04
101+
scpslsm,scpslsmserver,SCP: Secret Laboratory ServerMod,ubuntu-22.04
102+
sdtd,sdtdserver,7 Days to Die,ubuntu-22.04
103+
sf,sfserver,Satisfactory,ubuntu-22.04
104+
sfc,sfcserver,SourceForts Classic,ubuntu-22.04
105+
sof2,sof2server,Soldier Of Fortune 2: Gold Edition,ubuntu-22.04
106+
sol,solserver,Soldat,ubuntu-22.04
107+
squad,squadserver,Squad,ubuntu-22.04
108+
st,stserver,Stationeers,ubuntu-22.04
109+
stn,stnserver,Survive the Nights,ubuntu-22.04
110+
sven,svenserver,Sven Co-op,ubuntu-20.04
111+
terraria,terrariaserver,Terraria,ubuntu-22.04
112+
tf2,tf2server,Team Fortress 2,ubuntu-22.04
113+
tfc,tfcserver,Team Fortress Classic,ubuntu-22.04
114+
ti,tiserver,The Isle,ubuntu-22.04
115+
ts,tsserver,The Specialists,ubuntu-22.04
116+
ts3,ts3server,Teamspeak 3,ubuntu-22.04
117+
tu,tuserver,Tower Unite,ubuntu-22.04
118+
tw,twserver,Teeworlds,ubuntu-22.04
119+
unt,untserver,Unturned,ubuntu-22.04
120+
ut,utserver,Unreal Tournament,ubuntu-22.04
121+
ut2k4,ut2k4server,Unreal Tournament 2004,ubuntu-22.04
122+
ut3,ut3server,Unreal Tournament 3,ubuntu-22.04
123+
ut99,ut99server,Unreal Tournament 99,ubuntu-22.04
124+
vh,vhserver,Valheim,ubuntu-22.04
125+
vints,vintsserver,Vintage Story,ubuntu-22.04
126+
vpmc,vpmcserver,Velocity Proxy MC,ubuntu-22.04
127+
vs,vsserver,Vampire Slayer,ubuntu-22.04
128+
wet,wetserver,Wolfenstein: Enemy Territory,ubuntu-22.04
129+
wf,wfserver,Warfork,ubuntu-22.04
130+
wmc,wmcserver,WaterfallMC,ubuntu-22.04
131+
wurm,wurmserver,Wurm Unlimited,ubuntu-22.04
132+
zmr,zmrserver,Zombie Master: Reborn,ubuntu-22.04
133+
zps,zpsserver,Zombie Panic! Source,ubuntu-22.04
File renamed without changes.

0 commit comments

Comments
 (0)