[PR #2032] [MERGED] Dependency checking can run as root #3459

Closed
opened 2026-02-27 03:54:35 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/GameServerManagers/LinuxGSM/pull/2032
Author: @dgibbs64
Created: 10/7/2018
Status: Merged
Merged: 10/7/2018
Merged by: @dgibbs64

Base: developHead: feature/rootdep-2017


📝 Commits (10+)

  • 94ca22e Run only dependency checks if user is root on installer
  • 1513337 Adding bypasses to allow dependency checks to run
  • 77f017c check will no longer check_root if using the install command
  • bccdcfe root dependency check message
  • cfa41ce corrected if
  • ac67fec corrected array behaviour
  • 211c030 detects game correctly
  • f98cee4 If running dep check as root will remove any files that belong to root
  • 02618b0 testing another command
  • 3c05ba6 moved root files delete to core_exit

📊 Changes

8 files changed (+150 additions, -110 deletions)

View changed files

📝 lgsm/functions/check.sh (+17 -10)
📝 lgsm/functions/check_deps.sh (+18 -7)
📝 lgsm/functions/check_permissions.sh (+6 -4)
📝 lgsm/functions/check_root.sh (+6 -4)
📝 lgsm/functions/command_install.sh (+36 -32)
📝 lgsm/functions/core_exit.sh (+6 -0)
📝 lgsm/functions/info_distro.sh (+9 -7)
📝 linuxgsm.sh (+52 -46)

📄 Description

dependency checks can now run as root in "server mode" e.g ./csgoserver install run as root will trigger dependency checking only. Allowing users to install dependencies using LinuxGSM. This will be very useful for automated installations of LinuxGSM


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/GameServerManagers/LinuxGSM/pull/2032 **Author:** [@dgibbs64](https://github.com/dgibbs64) **Created:** 10/7/2018 **Status:** ✅ Merged **Merged:** 10/7/2018 **Merged by:** [@dgibbs64](https://github.com/dgibbs64) **Base:** `develop` ← **Head:** `feature/rootdep-2017` --- ### 📝 Commits (10+) - [`94ca22e`](https://github.com/GameServerManagers/LinuxGSM/commit/94ca22e6f65cec892d77239c94dc3c73479ef6dd) Run only dependency checks if user is root on installer - [`1513337`](https://github.com/GameServerManagers/LinuxGSM/commit/15133371cdee93fecd24627b3be51e2dbdf5a50d) Adding bypasses to allow dependency checks to run - [`77f017c`](https://github.com/GameServerManagers/LinuxGSM/commit/77f017c874e5be62c3813fcaf081c13e0fb8ff93) check will no longer check_root if using the install command - [`bccdcfe`](https://github.com/GameServerManagers/LinuxGSM/commit/bccdcfec443cf4c99a44fa134a728a5ea59f9164) root dependency check message - [`cfa41ce`](https://github.com/GameServerManagers/LinuxGSM/commit/cfa41ce8366476897c455aa6a9ed1705b853f7c1) corrected if - [`ac67fec`](https://github.com/GameServerManagers/LinuxGSM/commit/ac67fec537224610bd66b571aa4843fc1a79a3f5) corrected array behaviour - [`211c030`](https://github.com/GameServerManagers/LinuxGSM/commit/211c0305c6eaa2ffe703f13ffda789eb7b967e27) detects game correctly - [`f98cee4`](https://github.com/GameServerManagers/LinuxGSM/commit/f98cee454519327a258a2bffc7fa1e9b04f2480f) If running dep check as root will remove any files that belong to root - [`02618b0`](https://github.com/GameServerManagers/LinuxGSM/commit/02618b0d48ae3e172459231481b05a2109b8eb2c) testing another command - [`3c05ba6`](https://github.com/GameServerManagers/LinuxGSM/commit/3c05ba63632dd81ce9fcc7c75432ec87cc876f4b) moved root files delete to core_exit ### 📊 Changes **8 files changed** (+150 additions, -110 deletions) <details> <summary>View changed files</summary> 📝 `lgsm/functions/check.sh` (+17 -10) 📝 `lgsm/functions/check_deps.sh` (+18 -7) 📝 `lgsm/functions/check_permissions.sh` (+6 -4) 📝 `lgsm/functions/check_root.sh` (+6 -4) 📝 `lgsm/functions/command_install.sh` (+36 -32) 📝 `lgsm/functions/core_exit.sh` (+6 -0) 📝 `lgsm/functions/info_distro.sh` (+9 -7) 📝 `linuxgsm.sh` (+52 -46) </details> ### 📄 Description dependency checks can now run as root in "server mode" e.g `./csgoserver install` run as root will trigger dependency checking only. Allowing users to install dependencies using LinuxGSM. This will be very useful for automated installations of LinuxGSM --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 03:54:35 +03:00
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#3459
No description provided.