Browse Source

update autodeleter script

ChesTeRcs 5 years ago
parent
commit
8eb7ceb921
1 changed files with 2 additions and 2 deletions
  1. 2 2
      autoDeleterBelowSpace.sh

+ 2 - 2
autoDeleterBelowSpace.sh

@@ -3,7 +3,7 @@
 #  prune_dir - prune directory by deleting files if we are low on space
 #
 DIR=/media/usb/ftp/data/domsod/FI9900P_00626E69B672/record
-CAPACITY_LIMIT=55
+CAPACITY_LIMIT=95
 
 if [ "$DIR" == "" ]
 then
@@ -32,7 +32,7 @@ then
     # we are below the limit. Just
     # delete regular files, ignore directories.
     #
-    ls -rt | while read FILE
+    ls -rt $DIR | while read FILE
     do
         if [ -f $FILE ]
         then