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
a08ed509f5
commit
30d34af397
@ -76,6 +76,7 @@ shift
|
|||||||
arg=$1
|
arg=$1
|
||||||
|
|
||||||
tmp_output=`mktemp ${TMPDIR:-/tmp}/periodic.XXXXXXXXXX`
|
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
|
# 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
|
# set, assume the user didn't really want us to muck with it (it's a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user