mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-11-20 06:15:44 +00:00
Reduce world size
This commit is contained in:
parent
a403c83e53
commit
6b2ed6e554
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ echo "$PRIVATE_KEY" > .ssh/id_rsa
|
|||
chmod 400 $(find . ! -path "*/.*" -type f)
|
||||
chmod -R 500 crash-reports/ dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/ plugins/Updater/
|
||||
|
||||
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
|
||||
if [ "$(ssh -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x serv@kaboom.pw 'du -s sync/worlds/' | awk '{print $1}')" -gt "200000" ]; then
|
||||
ssh -o StrictHostKeyChecking=no serv@kaboom.pw 'cd sync/ && find . ! -path './plugins/WorldEdit/schematics' -type d -exec rm -rf {} +'
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue