2019-08-06 17:42:16 +00:00
|
|
|
#!/bin/sh
|
2019-09-21 13:21:59 +00:00
|
|
|
PATH="$HOME/autossh/bin/:$HOME/java/bin/:$HOME/tmux/bin/:$HOME/ttyd/bin/:$PATH"
|
2019-02-23 18:49:15 +00:00
|
|
|
|
2019-02-02 23:40:25 +00:00
|
|
|
echo "$REMOTE_KEY" > .ssh/remote
|
|
|
|
echo "$SYNC_KEY" > .ssh/id_rsa
|
|
|
|
chmod 600 .ssh/remote
|
2018-07-05 20:51:43 +00:00
|
|
|
|
2019-06-24 10:27:46 +00:00
|
|
|
ssh-keyscan github.com >> .ssh/known_hosts
|
2019-02-23 18:19:01 +00:00
|
|
|
|
2019-03-09 20:34:13 +00:00
|
|
|
chmod -R 500 plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/
|
2019-02-23 18:19:01 +00:00
|
|
|
|
2019-07-24 01:55:40 +00:00
|
|
|
git clone git@github.com:kaboomserver/schematics.git plugins/FastAsyncWorldEdit/schematics/
|
2018-05-25 16:49:13 +00:00
|
|
|
|
2019-09-04 21:16:35 +00:00
|
|
|
while true; do
|
2019-09-21 03:55:25 +00:00
|
|
|
tmux new -d -s server 'sh -x script/server' >/dev/null
|
|
|
|
tmux new -d -s remote 'sh -x script/remote' >/dev/null
|
|
|
|
tmux new -d -s schematics 'sh -x script/schematics' >/dev/null
|
2019-09-21 14:01:13 +00:00
|
|
|
stty -isig intr && ttyd -p $PORT tmux attach -t server
|
2019-09-04 21:16:35 +00:00
|
|
|
sleep 5
|
2019-09-17 18:21:00 +00:00
|
|
|
done &
|
2018-05-25 16:49:13 +00:00
|
|
|
|
2019-08-06 18:08:06 +00:00
|
|
|
sleep 30
|
2018-11-13 04:08:36 +00:00
|
|
|
|
2019-09-04 21:16:35 +00:00
|
|
|
while true; do
|
2019-09-21 03:55:25 +00:00
|
|
|
tmux new -d -s alivecheck 'sh -x script/alivecheck' >/dev/null
|
2019-09-04 21:16:35 +00:00
|
|
|
sleep 5
|
2019-09-17 18:21:00 +00:00
|
|
|
done &
|
2018-11-11 19:45:48 +00:00
|
|
|
|
2018-06-10 05:22:56 +00:00
|
|
|
sleep infinity
|