mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 14:21:18 +00:00
Refactor install to map, as that's more relevant.
Update docs.
This commit is contained in:
parent
6b329db11f
commit
287d60fe1d
6 changed files with 8 additions and 7 deletions
|
@ -2,11 +2,11 @@
|
|||
|
||||
set -eE
|
||||
|
||||
if [ -f /files/mods/${1}/install.env ]
|
||||
if [ -f /files/mods/${1}/map.env ]
|
||||
then
|
||||
source /files/mods/${1}/install.env
|
||||
source /files/mods/${1}/map.env
|
||||
else
|
||||
echo "install.env not found for mod id ${1}..."
|
||||
echo "map.env not found for mod id ${1}..."
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -65,7 +65,8 @@ xmlstarlet ed \
|
|||
> types.xml
|
||||
```
|
||||
|
||||
Always lint any XML file that is created/merged:
|
||||
Always lint any XML file that is created/merged (Any output from this command means there is a problem. No output means the XML file is valid):
|
||||
|
||||
```shell
|
||||
xmllint --noout types.xml
|
||||
```
|
||||
|
|
|
@ -294,11 +294,11 @@ Mods: "
|
|||
|
||||
map(){
|
||||
# Install map mpmissions for mods that have them. Presumes a map.env was created for the mod, with the required metadata (git URL, etc.)
|
||||
if [ -f ${FILES}/mods/${1}/install.env ]
|
||||
if [ -f ${FILES}/mods/${1}/map.env ]
|
||||
then
|
||||
echo "Installing mpmissions files for mod id ${1}..."
|
||||
source ${FILES}/mods/${1}/install.env
|
||||
${FILES}/bin/install.sh ${1} install
|
||||
source ${FILES}/mods/${1}/map.env
|
||||
${FILES}/bin/map.sh ${1} install
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue