mirror of https://github.com/Zelo72/rpi
2020.10.03-22:01:07
This commit is contained in:
parent
cec817b772
commit
28498292e3
|
@ -12,7 +12,7 @@ fi
|
|||
|
||||
exportFile=$1/TopDomainsBlocked.txt
|
||||
|
||||
echo "Exportiere geblocke Doamins ..."
|
||||
echo "Exportiere geblockte Domains ..."
|
||||
|
||||
sqlite3 /etc/pihole/pihole-FTL.db "SELECT domain, count(domain) FROM queries WHERE status NOT IN(2,3) GROUP BY domain ORDER BY count(domain) DESC;" >"$exportFile"
|
||||
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Es wurde kein Ausgabeverzeichnis angegeben!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "$1" ]; then
|
||||
echo "Ausgabeverzeichnis $1 existiert nicht!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exportFile=$1/TopDomainsPermitted.txt
|
||||
|
||||
echo "Exportiere aufgerufene Domains ..."
|
||||
|
||||
sqlite3 /etc/pihole/pihole-FTL.db "SELECT domain, count(domain) FROM queries WHERE status IN(2,3) GROUP BY domain ORDER BY count(domain) DESC;" >"$exportFile"
|
||||
|
||||
echo "Export nach $exportFile abgeschlossen"
|
|
@ -38,7 +38,8 @@ scripturls=("https://raw.githubusercontent.com/Zelo72/rpi/master/pihole/backupPi
|
|||
"https://raw.githubusercontent.com/Zelo72/rpi/master/pi/backupPiSDimg.sh"
|
||||
"https://raw.githubusercontent.com/Zelo72/rpi/master/pihole/migratePiholeAdlists.py"
|
||||
"https://raw.githubusercontent.com/Zelo72/rpi/master/pihole/migratePiholeAuditLog.py"
|
||||
"https://raw.githubusercontent.com/Zelo72/rpi/master/pihole/exportPiholeBlockedToplist.sh")
|
||||
"https://raw.githubusercontent.com/Zelo72/rpi/master/pihole/exportPiholeBlockedToplist.sh"
|
||||
"https://raw.githubusercontent.com/Zelo72/rpi/master/pihole/exportPiholePermittedToplist.sh")
|
||||
|
||||
# Scripte herunterladen und in $DownloadDir speichern/updaten und mit chmod ausführbar machen
|
||||
for url in "${scripturls[@]}"; do
|
||||
|
|
Loading…
Reference in New Issue