Automatic updating of mods and mod configurations.

This commit is contained in:
2022-05-16 00:42:40 -05:00
parent 5b3805b5e5
commit 3536b747fd
146 changed files with 187562 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
#!/bin/bash
git clone git@dev.sys.reslate.xyz:ydeng/rsemcs.git update-folder
cd update-folder
git checkout develop
mkdir temp
cd temp
curl -LOJR https://dev.sys.reslate.xyz/dev-auto/job/ydeng-public/job/rsemcm/job/master/lastSuccessfulBuild/artifact/publish/RSEMCM_server.zip
@@ -7,4 +10,9 @@ unzip RSEMCM_server.zip
cd ../
rsync -av --update temp/mods/* ./mods/.
rsync -av --ignore-existing temp/config ./config/.
rm -r ./temp
rm -r ./temp
git add .
git commit -a -m "Automatic updating of mods and their configurations."
git push
cd ../
rm -rf update-folder