mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 14:21:18 +00:00

Add command line xml merge tool for when that time comes. Add Red Falcon Heliz mod as the work-in-progress for getting a turnkey system that merges many different XML files that a full server mod installation will require. Fix finding a mod by index and use that for all mod operations. Start re-working how mods are added/removed/activated/deactivated. Add a template system for handling mod XML files. Add lots of comments.
30 lines
659 B
Bash
Executable file
30 lines
659 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eE
|
|
|
|
source /files/mods/${1}/install.env
|
|
|
|
echo
|
|
if [[ ${2} = "uninstall" ]]
|
|
then
|
|
echo "Backing up, as uninstalling will remove the ${MAP} mpmissions directory"
|
|
dayzserver backup
|
|
echo "Uninstalling mpmissions..."
|
|
echo
|
|
rm -rf ${SERVER_FILES}/mpmissions/${MPDIR}
|
|
elif [[ ${2} = "update" ]]
|
|
then
|
|
echo "Updating mpmissions directory..."
|
|
echo
|
|
cd /tmp
|
|
git clone ${REPO} 2> /dev/null 1> /dev/null
|
|
cp -a ${DIR}/${MPDIR} ${SERVER_FILES}/mpmissions
|
|
rm -rf ${DIR}
|
|
else
|
|
echo "Installing mpmissions files..."
|
|
echo
|
|
cd /tmp
|
|
git clone ${REPO} 2> /dev/null 1> /dev/null
|
|
cp -a ${DIR}/${MPDIR} ${SERVER_FILES}/mpmissions
|
|
rm -rf ${DIR}
|
|
fi
|