buildpack/bin/start

31 lines
788 B
Text
Raw Normal View History

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