2021-07-17 23:52:05 -05:00
|
|
|
#!/bin/bash --posix
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
STEAM_DIRECTORY="${1:-"/home/Steam/"}"
|
|
|
|
|
|
|
|
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/sbin/steamcmd
|
|
|
|
/home/Steam/steamcmd.sh "$@"
|
|
|
|
EOF
|
|
|
|
|
2021-07-18 02:56:20 -05:00
|
|
|
chmod 755 /usr/sbin/steamcmd
|
2021-07-17 23:54:39 -05:00
|
|
|
/usr/sbin/steamcmd +quit
|