Zami Seck | 4e0251d | 2022-10-14 12:05:22 -0400 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
2 | # | ||||
3 | # config: 2 40 | ||||
4 | # @brief: Save the audit log | ||||
5 | # | ||||
6 | |||||
7 | # shellcheck disable=SC1091 | ||||
8 | . "$DREPORT_INCLUDE"/functions | ||||
9 | |||||
10 | # Multiple audit.log files can exist in the $log_path | ||||
11 | # directory. Copy all that exist to the dump. | ||||
12 | desc="Audit Log" | ||||
13 | log_path="/var/log/audit/" | ||||
14 | |||||
15 | if [ -e "$log_path" ]; then | ||||
16 | add_copy_file "$log_path" "$desc" | ||||
17 | fi |