mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-11 18:48:26 +00:00
Abort if steamcmd_user is root
This commit is contained in:
parent
6e9167dcc9
commit
71b622ab40
@ -192,6 +192,9 @@ runAsRoot(){
|
||||
doUpgradeTools
|
||||
elif [ "$1" == "uninstall-tools" ]; then
|
||||
doUninstallTools
|
||||
elif [ "$steamcmd_user" = "$USERNAME" ]; then
|
||||
echo "Error: steamcmd_user is root; aborting"
|
||||
exit 1
|
||||
else
|
||||
exec /sbin/runuser "$steamcmd_user" -s "$steamcmd_user_shellexec" -c "$(printf "%q" "$0")$(printf " %q" "$@")"
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user