Met root privies:Ganz_anders schreef op dinsdag 22 februari 2022 @ 16:23:
cat /etc/pihole/setupVars.conf | grep 'WEBPASSWORD=' | cut -c13-
code:
1
| docker exec <PIHOLE_CONTAINER_NAME> awk -F = '/WEBPASSWORD=/ {print $2}' /etc/pihole/setupVars.conf |
EDIT: <PIHOLE_CONTAINER_NAME> met werkelijke naam vervangen!
EDIT2: Ow mogelijk dat awk niet in de container anwezig is dus dan maar toch twee keer pipen naar cut.
[ Voor 26% gewijzigd door deHakkelaar op 24-02-2022 02:53 ]
There are only 10 types of people in the world: those who understand binary, and those who don't