Skip to content

Commit

Permalink
Abort if steamcmd_user is root
Browse files Browse the repository at this point in the history
  • Loading branch information
klightspeed committed Mar 20, 2020
1 parent 6e9167d commit 71b622a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/arkmanager
Expand Up @@ -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
Expand Down

0 comments on commit 71b622a

Please sign in to comment.