buildpack/bin/start
2019-11-30 18:18:45 +02:00

23 lines
656 B
Bash
Executable file

#!/bin/sh
PATH="$HOME/autossh/bin/:$HOME/java/bin/:$HOME/tmux/bin/:$HOME/ttyd/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/
git clone git@github.com:kaboomserver/schematics.git plugins/FastAsyncWorldEdit/schematics/
while true; do
tmux new -d -s server 'sh -c script/server' >/dev/null
tmux new -d -s remote 'sh -x script/remote' >/dev/null
#tmux new -d -s webconsole 'sh -x script/webconsole' >/dev/null
tmux new -d -s schematics 'sh -x script/schematics' >/dev/null
sleep 5
done &
sleep infinity