mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 16:58:27 +00:00
use dedicated cfg file
This commit is contained in:
parent
f98422b849
commit
bb53e8870b
@ -33,6 +33,10 @@ To install ARK Server just run this command as normal user:
|
|||||||
arkmanager install
|
arkmanager install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Configure ARK Server
|
||||||
|
|
||||||
|
All the needed variables are stored in the `steam` home directory inside `.arkmanager.cfg`, change them following the comments.
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
Original author of arkmanager: LeXaT
|
Original author of arkmanager: LeXaT
|
||||||
|
|||||||
@ -5,23 +5,8 @@
|
|||||||
# Original author: LeXaT
|
# Original author: LeXaT
|
||||||
# Maintainer: FezVrasta
|
# Maintainer: FezVrasta
|
||||||
|
|
||||||
# config SteamCMD
|
# Global variables
|
||||||
steamcmdroot="/home/steam/steamcmd"
|
source ~/.arkmanager.cfg
|
||||||
steamcmdexec="steamcmd.sh"
|
|
||||||
steamuser="anonymous"
|
|
||||||
steampass=""
|
|
||||||
|
|
||||||
# config Server
|
|
||||||
arkserverroot="/home/steam/ARK"
|
|
||||||
arkserverexec="ShooterGameServer"
|
|
||||||
arkserversession="GameServerSetup"
|
|
||||||
arkserverport="27016"
|
|
||||||
arkserverpass="SERVERPASSWORD"
|
|
||||||
akrserverapass="ADMINPASSWORD"
|
|
||||||
|
|
||||||
# config Service
|
|
||||||
servicename="arkserv"
|
|
||||||
logdir="$arkserverroot/logs"
|
|
||||||
|
|
||||||
# init
|
# init
|
||||||
if [ ! -d "$arkserverroot" ]; then
|
if [ ! -d "$arkserverroot" ]; then
|
||||||
|
|||||||
17
tools/arkmanager.cfg
Normal file
17
tools/arkmanager.cfg
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# config SteamCMD
|
||||||
|
steamcmdroot="/home/steam/steamcmd" # path of your steamcmd instance
|
||||||
|
steamcmdexec="steamcmd.sh" # name of steamcmd executable
|
||||||
|
steamuser="anonymous" # steam user (for ark you can use anonymous)
|
||||||
|
steampass="" # steam password (for anonymous is empty)
|
||||||
|
|
||||||
|
# config Server
|
||||||
|
arkserverroot="/home/steam/ARK" # path of your ARK server files (default ~/ARK)
|
||||||
|
arkserverexec="ShooterGameServer" # name of ARK server executable
|
||||||
|
arkserversession="GameServerSetup" # ARK server session name
|
||||||
|
arkserverport="27016" # ARK server port (default 27016)
|
||||||
|
arkserverpass="SERVERPASSWORD" # ARK server password, empty: no password required to login
|
||||||
|
akrserverapass="ADMINPASSWORD" # ARK server admin password, KEEP IT SAFE!
|
||||||
|
|
||||||
|
# config Service
|
||||||
|
servicename="arkserv" # Name of the service (don't change if you don't know what are you doing)
|
||||||
|
logdir="/var/log/arktools" # Logs path (default /var/log/arktools)
|
||||||
@ -12,6 +12,12 @@ if [ ! -z $1 ]; then
|
|||||||
# Create a folder in /var/log to let Ark tools write its own log files
|
# Create a folder in /var/log to let Ark tools write its own log files
|
||||||
mkdir /var/log/arktools
|
mkdir /var/log/arktools
|
||||||
chown $1 /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
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "You must specify your steam user to install ARK Tools. Usage: ./install.sh steam"
|
echo "You must specify your steam user to install ARK Tools. Usage: ./install.sh steam"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user