mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-13 03:18:28 +00:00
install steamcmd if not already installed
This commit is contained in:
parent
a03df35d7b
commit
23706cae6a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user