mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-26 00:08:28 +00:00
Add support for -opt=val options using arkopt_opt=val
This commit is contained in:
parent
167781e34f
commit
17dd16a830
@ -434,6 +434,15 @@ doRun() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# bring in arkopt_... options
|
||||||
|
for varname in "${!arkopt_@}"; do
|
||||||
|
name="${varname#arkopt_}"
|
||||||
|
val="${!varname}"
|
||||||
|
|
||||||
|
if [ -n "$val" ]; then
|
||||||
|
arkextraopts=( "${arkextraopts[@]}" "-${name}=${val}" )
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
arkserveropts="${arkserveropts}?listen"
|
arkserveropts="${arkserveropts}?listen"
|
||||||
# run the server in background
|
# run the server in background
|
||||||
|
|||||||
@ -44,6 +44,9 @@ ark_MaxPlayers="70"
|
|||||||
#arkflag_OnlyAdminRejoinAsSpectator=true # Uncomment to only allow admins to rejoin as spectator
|
#arkflag_OnlyAdminRejoinAsSpectator=true # Uncomment to only allow admins to rejoin as spectator
|
||||||
#arkflag_DisableDeathSpectator=true # Uncomment to disable players from becoming spectators when they die
|
#arkflag_DisableDeathSpectator=true # Uncomment to disable players from becoming spectators when they die
|
||||||
|
|
||||||
|
# ARK server options - i.e. for -optname=val, use arkopt_optname=val
|
||||||
|
#arkopt_StructureDestructionTag=DestroySwampSnowStructures
|
||||||
|
|
||||||
# config Service
|
# config Service
|
||||||
servicename="arkserv" # Name of the service (don't change if you don't know what are you doing)
|
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)
|
logdir="/var/log/arktools" # Logs path (default /var/log/arktools)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user