mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-24 15:38:26 +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
|
# install of ARK server
|
||||||
#
|
#
|
||||||
doInstall() {
|
doInstall() {
|
||||||
if [ ! -d "$arkserverroot" ]; then
|
mkdir -p $arkserverroot
|
||||||
mkdir $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
|
fi
|
||||||
|
|
||||||
cd $steamcmdroot
|
cd $steamcmdroot
|
||||||
# install the server
|
# install the server
|
||||||
./$steamcmdexec +login anonymous +force_install_dir "$arkserverroot" +app_update $appid validate +quit
|
./$steamcmdexec +login anonymous +force_install_dir "$arkserverroot" +app_update $appid validate +quit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user