General/Scripts/install-steamcmd.bash
Price Hiller 280d39ac4e Remove softlink, instead use bash script to active steamcmd.sh
This is because steamcmd requires some things local to its own script dir to work properly, soft linking makes these resources inacessible on its relative path
2021-12-26 00:15:41 -06:00

18 lines
419 B
Bash

#!/bin/bash --posix
set -e
STEAM_DIRECTORY="${1:-"/usr/local/share/steam/"}"
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
${STEAM_DIRECTORY}/steamcmd.sh "${@}"
__EOF__
chmod 755 /usr/local/bin/steamcmd
/usr/local/bin/steamcmd +quit