Additional checks

This commit is contained in:
mathias 2018-09-04 02:10:20 +03:00
parent 76597b6958
commit 750e3fa538

View file

@ -7,6 +7,15 @@ chmod -R 500 crash-reports/ dumps/ plugins/bStats/ plugins/PluginMetrics/ plugin
if [ "$(ssh -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x serv@kaboom.pw 'du -s sync/worlds/' | awk '{print $1}')" -gt "500000" ]; then
ssh -o StrictHostKeyChecking=no serv@kaboom.pw 'cd sync/ && find . ! -path './plugins/WorldEdit/schematics' -type d -exec rm -rf {} +'
fi
if [ "$(ssh -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x serv@kaboom.pw 'du -s sync/plugins/FastAsyncWorldEdit/clipboard/' | awk '{print $1}')" -gt "200000" ]; then
ssh -o StrictHostKeyChecking=no serv@kaboom.pw 'rm -rf sync/plugins/FastAsyncWorldEdit/clipboard/'
fi
if [ "$(ssh -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x serv@kaboom.pw 'du -s sync/plugins/FastAsyncWorldEdit/history/' | awk '{print $1}')" -gt "200000" ]; then
ssh -o StrictHostKeyChecking=no serv@kaboom.pw 'rm -rf sync/plugins/FastAsyncWorldEdit/history/'
fi
rsync -Waqz -e "ssh -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x" --exclude-from=".bin/excludes" serv@kaboom.pw:sync/plugins serv@kaboom.pw:sync/worlds .
while true; do