Minor changes

This commit is contained in:
mathias 2019-02-23 20:19:01 +02:00
parent 799dd674ca
commit 979c6d2e46
3 changed files with 8 additions and 6 deletions

View file

@ -2,5 +2,4 @@
BIN_DIR="$(cd "$(dirname "$0")" && pwd)"
BUILD_DIR=$1
mkdir -p $BUILD_DIR/.bin/
mv $BIN_DIR/start $BUILD_DIR/.bin/
mv $BIN_DIR/start $BUILD_DIR/

View file

@ -2,5 +2,5 @@
cat <<EOF
---
default_process_types:
worker: .bin/start
worker: start
EOF

View file

@ -1,11 +1,14 @@
#!/bin/bash
mkdir -p dumps/
echo "$REMOTE_KEY" > .ssh/remote
echo "$SYNC_KEY" > .ssh/id_rsa
chmod 600 .ssh/remote
chmod -R 500 dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/
ssh-keyscan notabug.org >> .ssh/known_hosts
ssh-keyscan play.kaboom.pw >> .ssh/known_hosts
mkdir -p dumps/
chmod -R 500 dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/
git clone git@notabug.org:kaboom/schematics.git plugins/WorldEdit/schematics/
./tmux new -d -s server 'while true; do
@ -14,7 +17,7 @@ git clone git@notabug.org:kaboom/schematics.git plugins/WorldEdit/schematics/
done'
./tmux new -d -s remote 'while true; do
ssh -i ~/.ssh/remote -o Compression=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes -o StrictHostKeyChecking=no -c aes128-gcm@openssh.com -S none -N -T -R 64518:localhost:25565 serv@play.kaboom.pw
ssh -i ~/.ssh/remote -o Compression=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes -c aes128-gcm@openssh.com -S none -N -T -R 64518:localhost:25565 serv@play.kaboom.pw
sleep 1
done'