Cron testing

This commit is contained in:
mathias 2018-06-10 13:43:20 +03:00
parent 9129f15c45
commit cb1906402d
2 changed files with 6 additions and 0 deletions

View file

@ -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"

5
bin/cron Executable file
View file

@ -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