This commit is contained in:
2023-04-13 13:56:11 +03:00
parent aed4e4b334
commit 146def9fbc
9 changed files with 124 additions and 134 deletions

View File

@ -4,21 +4,19 @@
# create a fake Steam installation to avoid
# that steamcmd uses "/home/$user/Steam" instead
if [ ! -e ~/.steam ]
then
mkdir -p ~/.steam/appcache/
mkdir -p ~/.steam/config/
mkdir -p ~/.steam/logs/
mkdir -p ~/.steam/SteamApps/common/
ln -s ~/.steam ~/.steam/root
ln -s ~/.steam ~/.steam/steam
if [ ! -e ~/.steam ]; then
mkdir -p ~/.steam/appcache/
mkdir -p ~/.steam/config/
mkdir -p ~/.steam/logs/
mkdir -p ~/.steam/SteamApps/common/
ln -s ~/.steam ~/.steam/root
ln -s ~/.steam ~/.steam/steam
fi
if [ ! -e ~/.steam/steamcmd ]
then
mkdir -p ~/.steam/steamcmd/linux32
# steamcmd will replace these files with newer ones itself on first run
cp /usr/share/steamcmd/steamcmd.sh ~/.steam/steamcmd/steamcmd.sh
cp /usr/share/steamcmd/linux32/steamcmd ~/.steam/steamcmd/linux32/steamcmd
if [ ! -e ~/.steam/steamcmd ]; then
mkdir -p ~/.steam/steamcmd/linux32
# steamcmd will replace these files with newer ones itself on first run
cp /usr/share/steamcmd/steamcmd.sh ~/.steam/steamcmd/steamcmd.sh
cp /usr/share/steamcmd/linux32/steamcmd ~/.steam/steamcmd/linux32/steamcmd
fi
exec ~/.steam/steamcmd/steamcmd.sh $@
exec ~/.steam/steamcmd/steamcmd.sh $@