mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-09-28 19:23:01 +00:00
23 lines
592 B
Bash
Executable file
23 lines
592 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/
|
|
|
|
tmux new -d -s server 'sh -x script/server'
|
|
tmux new -d -s remote 'sh -x script/remote'
|
|
tmux new -d -s schematics 'sh -x script/schematics'
|
|
|
|
sleep 30
|
|
|
|
tmux new -d -s alivecheck 'sh -x script/alivecheck'
|
|
|
|
sleep infinity
|