Backend additions for aufit log feature (#1399)

This commit is contained in:
DL6ER 2017-06-27 10:53:24 +02:00 committed by GitHub
parent 89a22ded54
commit e9d81fc883

View file

@ -441,6 +441,11 @@ Teleporter() {
php /var/www/html/admin/scripts/pi-hole/php/teleporter.php > "pi-hole-teleporter_${datetimestamp}.zip"
}
audit()
{
echo "${args[2]}" >> /etc/pihole/auditlog.list
}
main() {
args=("$@")
@ -467,6 +472,7 @@ main() {
"-i" | "interface" ) SetListeningMode "$@";;
"-t" | "teleporter" ) Teleporter;;
"adlist" ) CustomizeAdLists;;
"audit" ) audit;;
* ) helpFunc;;
esac