mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-07 23:01:18 +00:00
Make WindStridesClothingPack use types.sh.
This commit is contained in:
parent
35be16d48f
commit
1a129135da
3 changed files with 0 additions and 30 deletions
|
@ -1,28 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -eE
|
|
||||||
|
|
||||||
cd "$(dirname ${0})"
|
|
||||||
|
|
||||||
echo
|
|
||||||
if echo ${0} | grep -q "uninstall.sh"
|
|
||||||
then
|
|
||||||
echo "Restoring original files and deleting extra file..."
|
|
||||||
echo
|
|
||||||
for file in $(ls *.orig)
|
|
||||||
do
|
|
||||||
cp -v $(file} ${HOME}/serverfiles/mpmissions/${file/.orig/}/db/types.xml
|
|
||||||
done
|
|
||||||
else
|
|
||||||
echo "Copying modified files to server missions directory..."
|
|
||||||
echo
|
|
||||||
cp -v ${HOME}/serverfiles/steamapps/workshop/content/221100/1797720064/extras/types.xml .
|
|
||||||
for dir in $(ls ${HOME}/serverfiles/mpmissions)
|
|
||||||
do
|
|
||||||
cp -v ${dir}/db/types.xml ${dir}.orig
|
|
||||||
head -n-1 ${dir}.orig > /tmp/types.xml
|
|
||||||
tail -n+2 types.xml >> /tmp/types.xml
|
|
||||||
xmllint --noout /tmp/types.xml && cp -v /tmp/types.xml ${C}/db/types.xml
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
echo
|
|
|
@ -1 +0,0 @@
|
||||||
install.sh
|
|
|
@ -1 +0,0 @@
|
||||||
1797720064
|
|
Loading…
Add table
Reference in a new issue