mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-09-28 19:23:01 +00:00
Cleanups
This commit is contained in:
parent
0916ed5ef6
commit
af97487c0a
|
@ -7,7 +7,7 @@ chmod 600 .ssh/remote
|
||||||
|
|
||||||
ssh-keyscan github.com >> .ssh/known_hosts
|
ssh-keyscan github.com >> .ssh/known_hosts
|
||||||
|
|
||||||
chmod -R 500 plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/
|
chmod -R 500 plugins/bStats/ plugins/PluginMetrics/
|
||||||
|
|
||||||
git clone git@github.com:kaboomserver/schematics.git plugins/FastAsyncWorldEdit/schematics/
|
git clone git@github.com:kaboomserver/schematics.git plugins/FastAsyncWorldEdit/schematics/
|
||||||
|
|
||||||
|
|
|
@ -2,15 +2,10 @@
|
||||||
while true; do
|
while true; do
|
||||||
sleep 420
|
sleep 420
|
||||||
logfile=$HOME/logs/latest.log
|
logfile=$HOME/logs/latest.log
|
||||||
if [ "$(env printf '\xFE' | nc -w 5 localhost 25565 | wc -m)" -eq 0 ]; then
|
|
||||||
if [ -f "$logfile" ]; then
|
if [ -f "$logfile" ]; then
|
||||||
if [ "$(tail -20 $logfile | grep -c 'ERROR]: Requested chunk')" -eq 1 ]; then
|
if [ "$(env printf '\xFE' | nc -w 5 localhost 25565 | wc -m)" -eq 0 ] ||
|
||||||
rm -rf $HOME/worlds/
|
[ "$(( $(date +%s) - $(date -r $logfile +%s) ))" -gt 180 ]; then
|
||||||
fi
|
|
||||||
fi
|
|
||||||
pkill -9 java
|
|
||||||
elif [ -f "$logfile" ]; then
|
|
||||||
if [ "$(( $(date +%s) - $(date -r $logfile +%s) ))" -gt 180 ]; then
|
|
||||||
if [ "$(tail -20 $logfile | grep -c 'ERROR]: Requested chunk')" -eq 1 ]; then
|
if [ "$(tail -20 $logfile | grep -c 'ERROR]: Requested chunk')" -eq 1 ]; then
|
||||||
rm -rf $HOME/worlds/
|
rm -rf $HOME/worlds/
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#export AUTOSSH_POLL=30
|
ssh -i ~/.ssh/remote \
|
||||||
ssh -i ~/.ssh/remote -o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes -c aes128-ctr -C -S none -N -T -R 25565:localhost:25565 remote@play.kaboom.pw
|
-o StrictHostKeyChecking=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes \
|
||||||
|
-c aes128-ctr \
|
||||||
|
-C -S none -N -T -R \
|
||||||
|
25565:localhost:25565 \
|
||||||
|
remote@play.kaboom.pw
|
||||||
|
|
Loading…
Reference in a new issue