buildpack/bin/start
2019-09-17 21:21:00 +03:00

29 lines
658 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'
tmux new -d -s remote 'sh -x script/remote'
tmux new -d -s schematics 'sh -x script/schematics'
sleep 5
done &
sleep 30
while true; do
tmux new -d -s alivecheck 'sh -x script/alivecheck'
sleep 5
done &
sleep infinity