From 4b56bd2bf226e28e2e61eac099c6a564bd323e7b Mon Sep 17 00:00:00 2001 From: root Date: Sat, 25 Apr 2020 18:36:56 +0000 Subject: [PATCH] MAJ Site + Cron --- site/fichiersRPI/fichiersRPI.zip | Bin 3973 -> 0 bytes site/fichiersRPI/script.sh | 2 +- site/upload/temps.txt | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 site/upload/temps.txt diff --git a/site/fichiersRPI/fichiersRPI.zip b/site/fichiersRPI/fichiersRPI.zip index ae1e8f3..e86da46 100644 Binary files a/site/fichiersRPI/fichiersRPI.zip and b/site/fichiersRPI/fichiersRPI.zip differ diff --git a/site/fichiersRPI/script.sh b/site/fichiersRPI/script.sh index ac8669f..a75658e 100755 --- a/site/fichiersRPI/script.sh +++ b/site/fichiersRPI/script.sh @@ -13,6 +13,6 @@ sudo make upload sudo python3 Rpi_to_server.py pwd=$(pwd) -tps=1 +tps=$(cat temps.txt) crontab -l | grep -v $pwd | crontab - (crontab -l ; echo "*/$tps * * * * $pwd/python.sh $pwd") | crontab - diff --git a/site/upload/temps.txt b/site/upload/temps.txt new file mode 100644 index 0000000..7813681 --- /dev/null +++ b/site/upload/temps.txt @@ -0,0 +1 @@ +5 \ No newline at end of file -- libgit2 0.21.2