| 1 | #!/bin/sh -f |
|---|
| 2 | # |
|---|
| 3 | # Copyright (c) 2005 Philipp Wuensche. All rights reserved. |
|---|
| 4 | # |
|---|
| 5 | # Redistribution and use in source and binary forms, with or without |
|---|
| 6 | # modification, are permitted provided that the following conditions are |
|---|
| 7 | # met: |
|---|
| 8 | # |
|---|
| 9 | # 1. Redistributions of source code must retain the above copyright notice |
|---|
| 10 | # this list of conditions and the following disclaimer. |
|---|
| 11 | # |
|---|
| 12 | # 2. Redistributions in binary form must reproduce the above copyright |
|---|
| 13 | # notice, this list of conditions and the following disclaimer in the |
|---|
| 14 | # documentation and/or other materials provided with the distribution. |
|---|
| 15 | # |
|---|
| 16 | # 3. Neither the name of the author nor the names of its contributors may be |
|---|
| 17 | # used to endorse or promote products derived from this software without |
|---|
| 18 | # specific prior written permission. |
|---|
| 19 | # |
|---|
| 20 | # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
|---|
| 21 | # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY |
|---|
| 22 | # AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
|---|
| 23 | # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
|---|
| 24 | # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
|---|
| 25 | # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
|---|
| 26 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|---|
| 27 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|---|
| 28 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
|---|
| 29 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|---|
| 30 | # |
|---|
| 31 | |
|---|
| 32 | if [ -r /etc/defaults/periodic.conf ]; then |
|---|
| 33 | . /etc/defaults/periodic.conf |
|---|
| 34 | source_periodic_confs |
|---|
| 35 | fi |
|---|
| 36 | |
|---|
| 37 | rc=0 |
|---|
| 38 | case "${daily_status_security_jailaudit_enable:-YES}" in |
|---|
| 39 | [Nn][Oo]) |
|---|
| 40 | ;; |
|---|
| 41 | *) |
|---|
| 42 | /usr/local/bin/jailaudit generate |
|---|
| 43 | /usr/local/bin/jailaudit mail - ALL |
|---|
| 44 | ;; |
|---|
| 45 | esac |
|---|
| 46 | |
|---|
| 47 | exit "$rc" |
|---|
| 48 | |
|---|