mirror of
https://github.com/kaboomserver/buildpack.git
synced 2024-06-17 08:51:19 +00:00
Move stop-script to buildpack
This commit is contained in:
parent
979c6d2e46
commit
0a206a17bc
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
BIN_DIR="$(cd "$(dirname "$0")" && pwd)"
|
BIN_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
BUILD_DIR=$1
|
BUILD_DIR=$1
|
||||||
|
|
||||||
mv $BIN_DIR/start $BUILD_DIR/
|
mv $BIN_DIR/start $BUILD_DIR/
|
||||||
|
mv $BIN_DIR/stop $BUILD_DIR/
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
echo "Kaboom"
|
echo "Kaboom"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
---
|
---
|
||||||
default_process_types:
|
default_process_types:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
echo "$REMOTE_KEY" > .ssh/remote
|
echo "$REMOTE_KEY" > .ssh/remote
|
||||||
echo "$SYNC_KEY" > .ssh/id_rsa
|
echo "$SYNC_KEY" > .ssh/id_rsa
|
||||||
chmod 600 .ssh/remote
|
chmod 600 .ssh/remote
|
||||||
|
@ -11,17 +11,17 @@ chmod -R 500 dumps/ plugins/bStats/ plugins/PluginMetrics/ plugins/ProtocolLib/
|
||||||
|
|
||||||
git clone git@notabug.org:kaboom/schematics.git plugins/WorldEdit/schematics/
|
git clone git@notabug.org:kaboom/schematics.git plugins/WorldEdit/schematics/
|
||||||
|
|
||||||
./tmux new -d -s server 'while true; do
|
tmux/bin/tmux new -d -s server 'while true; do
|
||||||
java/bin/java -Xmx384M -Xss512k -Xaggressive -Xdisablejavadump -Xnoagent -Xquickstart -Xshareclasses -XX:MaxDirectMemorySize=384M -XX:-HeapDumpOnOutOfMemoryError -XX:+IdleTuningGcOnIdle -XX:+UseContainerSupport -Dcom.mojang.eula.agree=true -jar minecraft-server.jar --world-dir=worlds
|
java/bin/java -Xmx384M -Xss512k -Xaggressive -Xdisablejavadump -Xnoagent -Xquickstart -Xshareclasses -XX:MaxDirectMemorySize=384M -XX:-HeapDumpOnOutOfMemoryError -XX:+IdleTuningGcOnIdle -XX:+UseContainerSupport -Dcom.mojang.eula.agree=true -jar minecraft-server.jar --world-dir=worlds
|
||||||
sleep 1
|
sleep 1
|
||||||
done'
|
done'
|
||||||
|
|
||||||
./tmux new -d -s remote 'while true; do
|
tmux/bin/tmux new -d -s remote 'while true; do
|
||||||
ssh -i ~/.ssh/remote -o Compression=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes -c aes128-gcm@openssh.com -S none -N -T -R 64518:localhost:25565 serv@play.kaboom.pw
|
ssh -i ~/.ssh/remote -o Compression=no -o ExitOnForwardFailure=yes -o StreamLocalBindUnlink=yes -c aes128-gcm@openssh.com -S none -N -T -R 64518:localhost:25565 serv@play.kaboom.pw
|
||||||
sleep 1
|
sleep 1
|
||||||
done'
|
done'
|
||||||
|
|
||||||
./tmux new -d -s schematics 'while true; do
|
tmux/bin/tmux new -d -s schematics 'while true; do
|
||||||
cd $HOME/plugins/WorldEdit/schematics/
|
cd $HOME/plugins/WorldEdit/schematics/
|
||||||
if [ "$(git add $(git ls-files -o) -v)" ]; then
|
if [ "$(git add $(git ls-files -o) -v)" ]; then
|
||||||
git -c user.name='kaboom' -c user.email='kaboom' commit -m "Add new schematics"
|
git -c user.name='kaboom' -c user.email='kaboom' commit -m "Add new schematics"
|
||||||
|
|
Loading…
Reference in a new issue