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:
parent
8f39f442c9
commit
195cf868e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user