Fix bug where upstream files were not being copied to the correct location upon server start.

This commit is contained in:
Daniel Ceregatti 2024-06-28 20:56:57 -07:00
parent 9fb3504bac
commit 8cf493e8d5

View file

@ -143,11 +143,11 @@ mergexml(){
do do
if [ -f /mpmissions/${MAP}/${i} ] if [ -f /mpmissions/${MAP}/${i} ]
then then
cp -v /mpmissions/${MAP}/${i} ${SERVER_FILES}/${i} cp -v /mpmissions/${MAP}/${i} ${MPMISSIONS}/${MAP}/${i}
else else
# Copy it from the Chernarus map # Copy it from the Chernarus map
echo "The map ${MAP} does not have a ${i} file, copying from Chernarus..." echo "The map ${MAP} does not have a ${i} file, copying from Chernarus..."
cp -v /mpmissions/dayzOffline.chernarusplus/${i} ${SERVER_FILES}/${i} cp -v /mpmissions/dayzOffline.chernarusplus/${i} ${MPMISSIONS}/${MAP}/${i}
fi fi
done done