commit f82b86b92903e28dec867e5f7693e31212d38cfd Author: Price Hiller Date: Sat Dec 25 21:44:55 2021 -0600 Initial commit diff --git a/Scripts/install-steamcmd.bash b/Scripts/install-steamcmd.bash new file mode 100644 index 0000000..ed7edb3 --- /dev/null +++ b/Scripts/install-steamcmd.bash @@ -0,0 +1,24 @@ +#!/bin/bash --posix + +set -e + +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 + +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}" + +ln -s "${STEAM_DIRECTORY}/steamcmd.sh" /usr/local/bin/steamcmd + +chmod 755 /usr/local/bin/steamcmd +/usr/local/bin/steamcmd +quit