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
|
set -eE
|
||||||
|
|
||||||
if [ -f /files/mods/${1}/install.env ]
|
if [ -f /files/mods/${1}/map.env ]
|
||||||
then
|
then
|
||||||
source /files/mods/${1}/install.env
|
source /files/mods/${1}/map.env
|
||||||
else
|
else
|
||||||
echo "install.env not found for mod id ${1}..."
|
echo "map.env not found for mod id ${1}..."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -65,7 +65,8 @@ xmlstarlet ed \
|
||||||
> types.xml
|
> 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
|
```shell
|
||||||
xmllint --noout types.xml
|
xmllint --noout types.xml
|
||||||
```
|
```
|
||||||
|
|
|
@ -294,11 +294,11 @@ Mods: "
|
||||||
|
|
||||||
map(){
|
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.)
|
# 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
|
then
|
||||||
echo "Installing mpmissions files for mod id ${1}..."
|
echo "Installing mpmissions files for mod id ${1}..."
|
||||||
source ${FILES}/mods/${1}/install.env
|
source ${FILES}/mods/${1}/map.env
|
||||||
${FILES}/bin/install.sh ${1} install
|
${FILES}/bin/map.sh ${1} install
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue