Make java executable

This commit is contained in:
mathias 2018-07-11 17:29:48 +03:00
parent 382b82b320
commit 049332231a

View file

@ -4,7 +4,7 @@ touch banned-ips.json banned-players.json ops.json usercache.json whitelist.json
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/
chmod +x bin/tmux
chmod +x bin/java/bin/java bin/tmux
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 {} +'