Export a PERIODIC environment variable from periodic(8). This will

allow periodic security scripts to know if they have been called in
a daily or a weekly context.
This commit is contained in:
Jeremie Le Hen 2013-08-25 08:56:09 +00:00
parent 8f39f442c9
commit 195cf868e2

View File

@ -76,6 +76,7 @@ shift
arg=$1
tmp_output=`mktemp ${TMPDIR:-/tmp}/periodic.XXXXXXXXXX`
export PERIODIC="$arg${PERIODIC:+ }${PERIODIC}"
# Execute each executable file in the directory list. If the x bit is not
# set, assume the user didn't really want us to muck with it (it's a