diff --git a/bin/compile b/bin/compile index 3b15d35..4d5b12a 100755 --- a/bin/compile +++ b/bin/compile @@ -4,6 +4,7 @@ BUILD_DIR=$1 mkdir -p $BUILD_DIR/bin/ mv $BIN_DIR/start $BUILD_DIR/bin/ +mv $BIN_DIR/cron $BUILD_DIR/bin/ mv $BIN_DIR/excludes $BUILD_DIR/bin/ curl -o inotify-tools.deb -s -L "http://security.ubuntu.com/ubuntu/pool/universe/i/inotify-tools/inotify-tools_3.14-2_amd64.deb" diff --git a/bin/cron b/bin/cron new file mode 100755 index 0000000..5f8e01c --- /dev/null +++ b/bin/cron @@ -0,0 +1,5 @@ +#!/bin/bash +killall java +rm -rf plugins/ worlds/ +ssh -i .key -o StrictHostKeyChecking=no serv@kaboom.pw 'rm -rf sync/' +reboot