mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-09-28 19:23:01 +00:00
31 lines
788 B
Bash
Executable file
31 lines
788 B
Bash
Executable file
#!/bin/sh
|
|
PATH="$HOME/autossh/bin/:$HOME/java/bin/:$HOME/tmux/bin/:$PATH"
|
|
|
|
echo "$REMOTE_KEY" > .ssh/remote
|
|
echo "$SYNC_KEY" > .ssh/id_rsa
|
|
chmod 600 .ssh/remote
|
|
|
|
ssh-keyscan github.com >> .ssh/known_hosts
|
|
|
|
chmod -R 500 plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/
|
|
|
|
git clone git@github.com:kaboomserver/schematics.git plugins/FastAsyncWorldEdit/schematics/
|
|
|
|
while true; do
|
|
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 server 'sh -x script/webconsole' >/dev/null
|
|
sh -x script/webconsole
|
|
tmux new -d -s schematics 'sh -x script/schematics' >/dev/null
|
|
sleep 5
|
|
done &
|
|
|
|
sleep 30
|
|
|
|
while true; do
|
|
tmux new -d -s alivecheck 'sh -x script/alivecheck' >/dev/null
|
|
sleep 5
|
|
done &
|
|
|
|
sleep infinity
|