Browse Source

added while loop to pict-converter as cron is not working, i'll have to fixe that

Bachir Soussi Chiadmi 7 năm trước cách đây
mục cha
commit
e4d45bcf50
1 tập tin đã thay đổi với 7 bổ sung5 xóa
  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