LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

[BUG] auto-install as root does not fetch data/${distroid}-${distroversioncsv}.csv

Open dhensby opened this issue 2 years ago • 1 comments

Basic info

  • Distro: Ubuntu 20.04
  • Game: CSGO
  • Command: auto-install
  • LinuxGSM version: v21.5.1

Further Information

When attempting to perform an unattended (or attended) install, using the auto-install command, it is not possible to install the server dependencies as root before having attempted the install without root-privileges first.

The auto-install as root does not appear to fetch the appropriate distro csv file.

To get around the problem one must attempt to install the game server without root privileges, receive an error that dependencies are missing, perform the root install and then attempt the non-privileged install again.

To Reproduce

Steps to reproduce the behaviour:

  1. Create a new VM/server/whatever
  2. login as root
  3. $ useradd csgo -m
  4. $ su csgo
  5. $ curl -sSL https://linuxgsm.sh -o /home/csgo/linuxgsm.sh
  6. $ cd /home/csgo && bash ./linuxgsm.sh csgoserver
  7. $ exit
  8. $ bash /home/csgo/csgoserver auto-install

Note warning is printed: Warning! LinuxGSM dependency checking currently unavailable for Ubuntu 20.04.3 LTS.

Server dependencies are not installed.

Expected behaviour

I would expect that the server dependencies would be installed after the above steps. Instead, one must attempt the non-privileged install first and then attempt the root privileged install and then attempt the non-privileged install for successful installation of dependencies and CSGO server.

dhensby avatar Feb 04 '22 00:02 dhensby

Can confirm this on Debian 11. Tested with 7days+Terraria.

su - user
/usr/bin/wget -O linuxgsm.sh https://linuxgsm.sh && bash linuxgsm.sh terrariaserver
exit
bash  /opt/games/terrariaserver install
copying _default.cfg...OK

Checking Dependencies as root
=================================
Information! Checking any missing dependencies for Terraria server only.
Information! This will NOT install a Terraria server.
Warning! LinuxGSM dependency checking currently unavailable for Debian GNU/Linux 11 (bullseye).

erdoking avatar Jun 15 '22 23:06 erdoking