Skip to content

Commit

Permalink
Make purgeConfigGraphics.sh relative to its base dir
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbuckle committed Aug 26, 2017
1 parent b6f448a commit cd5a1d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion purgeConfigGraphics.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
DIR=`dirname "$0"`

# purge all .jpg files over 1 day old
find /home/edrefcardinfoi7/www/configs -name "*.jpg" \! \( -newerct '1 day ago' \) -delete
find "./$DIR/www/configs" -name "*.jpg" \! \( -newerct '1 day ago' \) -delete

0 comments on commit cd5a1d3

Please sign in to comment.