mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-08-09 08:33:35 +00:00
Add bercon-cli into the server container.
This commit is contained in:
parent
9521ded242
commit
1f31cec202
6 changed files with 20 additions and 1 deletions
|
@ -171,14 +171,24 @@ get_mods(){
|
|||
|
||||
get_mod_command_line(){
|
||||
mod_command_line=""
|
||||
server_command_line=""
|
||||
for link in $(ls -tdr ${SERVER_PROFILE}/@* 2> /dev/null)
|
||||
do
|
||||
ID=$(readlink ${link} | awk -F/ '{print $NF}')
|
||||
MODNAME=$(get_mod_name ${ID})
|
||||
if grep -q SERVER_MOD ${FILES}/mods/${ID}/xml.env 2> /dev/null
|
||||
then
|
||||
server_command_line+="@${MODNAME};"
|
||||
else
|
||||
mod_command_line+="@${MODNAME};"
|
||||
fi
|
||||
done
|
||||
if [[ ${mod_command_line} != "" ]]
|
||||
then
|
||||
mod_command_line='-mod='${mod_command_line::-1}
|
||||
fi
|
||||
if [[ ${server_command_line} != "" ]]
|
||||
then
|
||||
server_command_line='-serverMod='${server_command_line::-1}
|
||||
fi
|
||||
}
|
||||
|
|
1
files/mods/2874589934/xml.env
Normal file
1
files/mods/2874589934/xml.env
Normal file
|
@ -0,0 +1 @@
|
|||
SERVER_MOD=1
|
1
files/mods/2881635033/xml.env
Normal file
1
files/mods/2881635033/xml.env
Normal file
|
@ -0,0 +1 @@
|
|||
SERVER_MOD=1
|
1
files/mods/@DayZ-Dynamic-AI-Addon
Symbolic link
1
files/mods/@DayZ-Dynamic-AI-Addon
Symbolic link
|
@ -0,0 +1 @@
|
|||
2874589934
|
1
files/mods/@FallFix
Symbolic link
1
files/mods/@FallFix
Symbolic link
|
@ -0,0 +1 @@
|
|||
2881635033
|
|
@ -24,6 +24,11 @@ RUN apt-get update && apt-get -y upgrade && apt-get -y install --no-install-reco
|
|||
wget \
|
||||
xmlstarlet
|
||||
|
||||
# Add bercon-cli https://github.com/WoozyMasta/bercon
|
||||
RUN wget https://github.com/WoozyMasta/bercon-cli/releases/latest/download/bercon-cli-linux-amd64 -O bercon-cli \
|
||||
&& chmod +x bercon-cli \
|
||||
&& mv bercon-cli /usr/bin
|
||||
|
||||
# Set the locale
|
||||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
||||
ENV LANG en_US.UTF-8
|
||||
|
|
Loading…
Add table
Reference in a new issue