add steamcmd user into the main config file

This commit is contained in:
Sispheor 2015-06-21 10:02:06 +02:00 committed by FezVrasta
parent 2901e1d7a3
commit 060ee857e2
2 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,7 @@
# config SteamCMD
steamcmdroot="/home/steam/steamcmd" # path of your steamcmd instance
steamcmdexec="steamcmd.sh" # name of steamcmd executable
steamcmd_user="steam" # name of the system user who own steamcmd folder
# config Server
arkserverroot="/home/steam/ARK" # path of your ARK server files (default ~/ARK)

View File

@ -13,17 +13,14 @@ if [ ! -z $1 ]; then
mkdir -p /var/log/arktools
chown $1 /var/log/arktools
# Copy .arkmanager.cfg inside user home
mv arkmanager.cfg /home/$1/.arkmanager.cfg
chown $1 /home/$1/.arkmanager.cfg
# Copy arkdaemon.cfg inside /etc folder
mv arkdaemon.cfg /etc/arkdaemon.cfg
chown $1 /etc/arkdaemon.cfg
echo ${1} >> /etc/arkdaemon.cfg
# Copy arkmanager.cfg inside linux configuation folder
mkdir /etc/arkmanager
mv arkmanager.cfg /etc/arkmanager/arkmanager.cfg
chown $1 /etc/arkmanager/arkmanager.cfg
else
echo "You must specify your steam user to install ARK Tools. Usage: ./install.sh steam"
echo "You must specify your system steam user who own steamcmd directory to install ARK Tools."
echo "Usage: ./install.sh steam"
fi
exit 0