From cb1906402d9764a60ad6af31338245df720e928c Mon Sep 17 00:00:00 2001 From: mathias Date: Sun, 10 Jun 2018 13:43:20 +0300 Subject: [PATCH] Cron testing --- bin/compile | 1 + bin/cron | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 bin/cron 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