Browse Source

Merge branch 'server' of https://g-u-i.me/gogs/bachir/hehe-rover into server

Bachir Soussi Chiadmi 7 years ago
parent
commit
bfd8b462c4
1 changed files with 7 additions and 5 deletions
  1. 7 5
      www/pict-converter.sh

+ 7 - 5
www/pict-converter.sh

@@ -99,8 +99,10 @@ function convert {
 }
 
 
-
-day=$(date +"%Y-%m-%d")
-logfile="logs/convert-$day.log"
-touch $logfile
-convert | tee -a $logfile
+while true; do
+    day=$(date +"%Y-%m-%d")
+    logfile="logs/convert-$day.log"
+    touch $logfile
+    convert | tee -a $logfile
+    sleep 10m
+done