install steamcmd if not already installed

This commit is contained in:
FezVrasta 2015-06-21 14:53:37 +02:00
parent a03df35d7b
commit 23706cae6a

View File

@ -150,9 +150,19 @@ doStop() {
# install of ARK server
#
doInstall() {
if [ ! -d "$arkserverroot" ]; then
mkdir $arkserverroot
mkdir -p $arkserverroot
# Check if steamcmd is installed, and if not, install it
if [ ! -e $steamcmdroot/$steamcmdexec ]; then
mkdir -p $steamcmdroot
cd /tmp
wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz -C $steamcmdroot
cd $steamcmdroot
./steamcmd.sh +quit
echo "SteamCMD was installed in $steamcmdroot"
fi
cd $steamcmdroot
# install the server
./$steamcmdexec +login anonymous +force_install_dir "$arkserverroot" +app_update $appid validate +quit