[Bug]: check_permissions enforces ownership of folders #4323
Labels
command: install
command: update
distro: Debian
distro: Ubuntu
game: Garry's Mod
info: docker
type: bug
Something isn't working
User story
As a user, I might not want to make the LGSM user owner of the LGSM_SERVERFILES directory, but only give it sufficient permissions using group
Game
Garrys Mod
Linux distro
Ubuntu 22.04, Ubuntu 20.04, Ubuntu 18.04, Ubuntu 16.04, Debian 12, Debian 11, Debian 10, Debian 9, RedHat 9, RedHat 8, RedHat 7
Command
command: update, command: install
Further information
I'm running a container that uses lgsm within a docker cluster. The server files directory is mounted as a volume to decrease server reboot time. Local-Path docker volumes currently don't support (automatically) setting the owner of the volume mount directory, but only setting the group. However, check_permissions still requires, that the owner of the server files directory is the active user. Currently I can work around this by nesting the server files directory in another directory. As lgsm will create this directory on demand, it will also be the owner of it.
Relevant log output
Steps to reproduce
LGSM_SERVERFILES
to the path of the directoryThe text was updated successfully, but these errors were encountered: