Fix region file permissions

This commit is contained in:
mathias 2018-07-05 22:02:23 +03:00
parent 4810e4f340
commit 8d978c578c

View file

@ -2,7 +2,7 @@
mkdir -p crash-reports/ dumps/
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 400 $(find . ! -path "*/.*" ! -path "worlds/world/region/" -type f)
chmod -R 500 crash-reports/ dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/ plugins/Updater/
rsync -Waqz -e "ssh -o StrictHostKeyChecking=no -T -c aes256-ctr -o Compression=no -x" --exclude-from="bin/excludes" serv@kaboom.pw:sync/ .