Allow 999.local to run scripts in any language
If one of the scripts listed in (daily|weekly|monthly)_local is executable, 999.local should simply execute it. Only if the script isn't executable should 999.local assume it needs /bin/sh. Reviewed by: brian MFC after: 3 weeks Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
878097c10e
commit
cb23468e75
@ -20,7 +20,12 @@ do
|
||||
echo ''
|
||||
case "$script" in
|
||||
/*)
|
||||
if [ -f "$script" ]
|
||||
if [ -x "$script" ]
|
||||
then
|
||||
echo "Running $script:"
|
||||
|
||||
$script || rc=3
|
||||
elif [ -f "$script" ]
|
||||
then
|
||||
echo "Running $script:"
|
||||
|
||||
|
@ -17,7 +17,12 @@ do
|
||||
echo ''
|
||||
case "$script" in
|
||||
/*)
|
||||
if [ -f "$script" ]
|
||||
if [ -x "$script" ]
|
||||
then
|
||||
echo "Running $script:"
|
||||
|
||||
$script || rc=3
|
||||
elif [ -f "$script" ]
|
||||
then
|
||||
echo "Running $script:"
|
||||
|
||||
|
@ -17,7 +17,12 @@ do
|
||||
echo ''
|
||||
case "$script" in
|
||||
/*)
|
||||
if [ -f "$script" ]
|
||||
if [ -x "$script" ]
|
||||
then
|
||||
echo "Running $script:"
|
||||
|
||||
$script || rc=3
|
||||
elif [ -f "$script" ]
|
||||
then
|
||||
echo "Running $script:"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user