cron.daily.ex
author heiko
Wed, 01 Jun 2016 11:18:23 +0200
changeset 65 a118304a1f79
parent 49 3e57c577c01e
permissions -rw-r--r--
Ignore the Makefile
43
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     1
#! /bin/bash
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     2
49
3e57c577c01e - cron: check existence of exigrey first
heiko
parents: 43
diff changeset
     3
command -v exigrey >/dev/null || exit 0
3e57c577c01e - cron: check existence of exigrey first
heiko
parents: 43
diff changeset
     4
43
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     5
# only output if terminal is connected
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     6
test -t 0 || exec >/dev/null
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     7
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     8
exigrey --clean 3 '*'
c6b65799fdb3 new deb
heiko
parents:
diff changeset
     9
exigrey --purge 5 '*'