Private key fix

This commit is contained in:
mathias 2018-05-25 20:39:04 +03:00
parent 52883099af
commit d76a619c2f

View file

@ -1,7 +1,7 @@
#!/bin/bash
mkdir -p crash-reports/ dumps/
touch banned-ips.json banned-ips.json.backup banned-players.json banned-players.json.backup ops.json ops.json.backup usercache.json whitelist.json whitelist.json.backup
$PRIVATE_KEY >> id_rsa
echo $PRIVATE_KEY >> id_rsa
chmod -R 500 crash-reports/ dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/ plugins/Updater/
chmod 400 'find . -type f'
rsync -avz -e "ssh -i id_rsa -o StrictHostKeyChecking=no" --exclude-from="bin/excludes" connect@kaboom.pw:/home/connect/sync/ .