From ee0f7c4d4fb8581c06fea00b2479aa147ded14c1 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 31 Dec 2021 13:13:58 -0600 Subject: [PATCH] Change SteamCMD directories --- CentOS/Install-SteamCMD.bash | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/CentOS/Install-SteamCMD.bash b/CentOS/Install-SteamCMD.bash index caf3ead..ed7edb3 100755 --- a/CentOS/Install-SteamCMD.bash +++ b/CentOS/Install-SteamCMD.bash @@ -2,17 +2,23 @@ set -e -STEAM_DIRECTORY="${1:-"/home/Steam/"}" +STEAM_DIRECTORY="${1:-"/usr/local/share/steam/"}" + +if which apt > /dev/null 2>&1; then + sudo apt -y install lib32gcc1 +elif which dnf > /dev/null 2>&1; then + dnf install -y glibc.i686 libstdc++.i686 tmux +else + echo "Unable to use either dnf or apt..., exiting" >&2 + exit 1 +fi -dnf install -y glibc.i686 libstdc++.i686 tmux mkdir -p "${STEAM_DIRECTORY}" cd "${STEAM_DIRECTORY}" curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf - chmod -R 755 "${STEAM_DIRECTORY}" -cat << 'EOF' > /usr/local/bin/steamcmd -/home/Steam/steamcmd.sh "$@" -EOF +ln -s "${STEAM_DIRECTORY}/steamcmd.sh" /usr/local/bin/steamcmd chmod 755 /usr/local/bin/steamcmd /usr/local/bin/steamcmd +quit