mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-09-28 19:23:01 +00:00
Fixes
This commit is contained in:
parent
d76a619c2f
commit
6b3524575b
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
mkdir -p crash-reports/ dumps/
|
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
|
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
|
||||||
echo $PRIVATE_KEY >> id_rsa
|
echo "$PRIVATE_KEY" > .key
|
||||||
chmod -R 500 crash-reports/ dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/ plugins/Updater/
|
chmod -R 500 crash-reports/ dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/ plugins/Updater/
|
||||||
chmod 400 'find . -type f'
|
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/ .
|
rsync -avz -e "ssh -i .key -o StrictHostKeyChecking=no" --exclude-from="bin/excludes" connect@kaboom.pw:/home/connect/sync/ .
|
||||||
|
|
||||||
if [ ! -d worlds/ ]; then
|
if [ ! -d worlds/ ]; then
|
||||||
cp -r reset/worlds/ .
|
cp -r reset/worlds/ .
|
||||||
|
@ -15,12 +15,12 @@ fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
bin/inotifywait -r -e modify,attrib,close_write,move,create,delete .
|
bin/inotifywait -r -e modify,attrib,close_write,move,create,delete .
|
||||||
rsync -avz -e "ssh -i id_rsa -o StrictHostKeyChecking=no" --exclude-from="bin/excludes" plugins worlds connect@kaboom.pw:/home/connect/sync/ > /dev/null 2>&1
|
rsync -avz -e "ssh -i .key -o StrictHostKeyChecking=no" --exclude-from="bin/excludes" plugins worlds connect@kaboom.pw:/home/connect/sync/ > /dev/null 2>&1
|
||||||
sleep 1
|
sleep 1
|
||||||
done &
|
done &
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
ssh -i id_rsa -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o ServerAliveCountMax=9999 -S none -T -R 25565:localhost:25565 connect@kaboom.pw > /dev/null 2>&1
|
ssh -i .key -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -o ServerAliveCountMax=9999 -S none -T -R 25565:localhost:25565 connect@kaboom.pw > /dev/null 2>&1
|
||||||
sleep 1
|
sleep 1
|
||||||
done &
|
done &
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue