mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 14:21:18 +00:00
Refactor function name so it's different between web and server containers.
Fix typo.
This commit is contained in:
parent
d176eadea0
commit
ad2f547845
2 changed files with 9 additions and 15 deletions
|
@ -127,7 +127,7 @@ report() {
|
|||
mergexml(){
|
||||
# First copy the pristine files from upstream
|
||||
echo "Copying pristine versions of cfgeconomycore.xml and cfgeventspawns.xml..."
|
||||
`` find /mpmissions -name cfgeconomycore.xml -exec cp -v {} ${SERVER_FILES}{} \;
|
||||
find /mpmissions -name cfgeconomycore.xml -exec cp -v {} ${SERVER_FILES}{} \;
|
||||
# find /mpmissions -name cfgeventspawns.xml -exec cp {} ${SERVER_FILES}{} \;
|
||||
|
||||
# Follow https://community.bistudio.com/wiki/DayZ:Central_Economy_mission_files_modding and make a single XML
|
||||
|
|
22
web/bin/dz
22
web/bin/dz
|
@ -34,12 +34,6 @@ ${default}"
|
|||
exit 1
|
||||
}
|
||||
|
||||
# "Manage" XML files.
|
||||
xml(){
|
||||
/files/bin/xml.sh ${1}
|
||||
mergexml ${1}
|
||||
}
|
||||
|
||||
# Manage the mod symlink
|
||||
symlink(){
|
||||
W=${1}
|
||||
|
@ -54,7 +48,7 @@ symlink(){
|
|||
fi
|
||||
}
|
||||
|
||||
mergexml(){
|
||||
installxml(){
|
||||
ID=${1}
|
||||
# Going to have to maintain a matrix of file names -> root node -> child node permutations
|
||||
for i in "CFGEVENTSPAWNS:eventposdef:event" "CFGSPAWNABLETYPES:spawnabletypes:type" "EVENTS:events:event" "TYPES:types:type"
|
||||
|
@ -115,18 +109,12 @@ add(){
|
|||
symlink 1 ${1} "${MODNAME}"
|
||||
# Lower case all the files in mod directories.
|
||||
find "${WORKSHOP_DIR}/${1}" -depth -exec rename -f 's/(.*)\/([^\/]*)/$1\/\L$2/' {} \;
|
||||
# Copy the key files
|
||||
# copy_keys 1 ${1}
|
||||
echo -e "Mod id ${1} - ${green}${MODNAME}${default} - added"
|
||||
mergexml ${ID}
|
||||
# checkTypesXML ${1} install
|
||||
# checkInstall ${1} install
|
||||
installxml ${ID}
|
||||
}
|
||||
|
||||
# Remove a mod
|
||||
remove(){
|
||||
# checkTypesXML ${1} uninstall
|
||||
# checkInstall ${1} uninstall
|
||||
if [ -d "${WORKSHOP_DIR}/${1}" ]
|
||||
then
|
||||
MODNAME=$(get_mod_name ${1})
|
||||
|
@ -307,6 +295,12 @@ check_mod_install(){
|
|||
fi
|
||||
}
|
||||
|
||||
# "Manage" XML files.
|
||||
xml(){
|
||||
/files/bin/xml.sh ${1}
|
||||
installxml ${1}
|
||||
}
|
||||
|
||||
# Capture the first argument and shift it off so we can pass $@ to every function
|
||||
C=${1}
|
||||
shift || {
|
||||
|
|
Loading…
Add table
Reference in a new issue