GameServerManagers / GameServerManagers/LinuxGSM

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

Open
#3,774 1 comment 0 reactions 0 assignees View on GitHub
command: install distro: Ubuntu info: dependency type: bug
Dominant language
Shell
Stars
4.9k
Forks
864
PR merge metrics
No merged PRs in 30d

Description

## 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
2. `$ useradd csgo -m`
3. `$ su csgo`
4. `$ curl -sSL https://linuxgsm.sh -o /home/csgo/linuxgsm.sh`
5. `$ cd /home/csgo && bash ./linuxgsm.sh csgoserver`
6. `$ exit`
7. `$ 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.